mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Enabled texture*Lod for vertex shaders in GLES3+.
This commit is contained in:
parent
31357c8786
commit
db59a9d44d
1 changed files with 4 additions and 3 deletions
|
@ -4133,11 +4133,14 @@ namespace bgfx { namespace gl
|
|||
writeString(&writer, "#version 140\n");
|
||||
}
|
||||
|
||||
writeString(&writer, "#define texture2DLod textureLod\n");
|
||||
writeString(&writer, "#define texture3DLod textureLod\n");
|
||||
writeString(&writer, "#define textureCubeLod textureLod\n");
|
||||
|
||||
if (m_type == GL_FRAGMENT_SHADER)
|
||||
{
|
||||
writeString(&writer, "#define varying in\n");
|
||||
writeString(&writer, "#define texture2D texture\n");
|
||||
writeString(&writer, "#define texture2DLod textureLod\n");
|
||||
writeString(&writer, "#define texture2DProj textureProj\n");
|
||||
|
||||
if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL) )
|
||||
|
@ -4152,9 +4155,7 @@ namespace bgfx { namespace gl
|
|||
}
|
||||
|
||||
writeString(&writer, "#define texture3D texture\n");
|
||||
writeString(&writer, "#define texture3DLod textureLod\n");
|
||||
writeString(&writer, "#define textureCube texture\n");
|
||||
writeString(&writer, "#define textureCubeLod textureLod\n");
|
||||
|
||||
uint32_t fragData = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue