![]() ![]() If your application doesn't require the REPEAT wrap mode, and can tolerate the lack of mipmaps, then you can simply configure the WebGLTexture object appropriately at creation time:įunction createTextureFromImage ( image ) The repeat mode is set to anything but CLAMP_TO_EDGE repeating NPOT textures are not supported.The minification filter is set to anything but NEAREST or LINEAR: in other words, if it uses one of the mipmapped filters.Sampling an NPOT texture in a shader will produce the RGBA color (0, 0, 0, 1) if:.generateMipmap(target) generates an INVALID_OPERATION error if the level 0 image of the texture currently bound to target has an NPOT width or height.The restrictions are defined in Sections 3.8.2, "Shader Execution", and 3.7.11, "Mipmap Generation", of the OpenGL ES 2.0 specification, and are summarized here: ![]() While OpenGL 2.0 and later for the desktop offer full support for non-power-of-two (NPOT) textures, OpenGL ES 2.0 and WebGL have only limited NPOT support. 3 No double-precision floating-point support. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |