-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
WebGLTextures: Set all pixel storage modes for CubeTexture. #20961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
NIT: Please move both two new lines right below the existing: _gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, texture.flipY );The all |
|
@mrdoob Do you know if there was a specific reason for excluding the following lines when using _gl.pixelStorei( _gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha );
_gl.pixelStorei( _gl.UNPACK_ALIGNMENT, texture.unpackAlignment ); |
|
The unpackAlignment is needed |
|
UNPACK_PREMULTIPLY_ALPHA_WEBGL.Webgl will have default Settings. If not set it, it is the default setting |
Not that I know of. |
|
Thanks! |
Unable to set the correct unpackAlignment when cubeTexture is set to dataTexture. So when i set the dataTexture(dataType:RBG) to Cubetexture the system will warn me and not work.
To solve:set the correct unpackAlignment