mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Enabled texture*Lod for vertex shaders in GLES3+.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user