diff options
Diffstat (limited to 'reference/opt/shaders')
-rw-r--r-- | reference/opt/shaders/legacy/fragment/explicit-lod.legacy.vert | 11 | ||||
-rw-r--r-- | reference/opt/shaders/legacy/vert/implicit-lod.legacy.vert | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/reference/opt/shaders/legacy/fragment/explicit-lod.legacy.vert b/reference/opt/shaders/legacy/fragment/explicit-lod.legacy.vert new file mode 100644 index 00000000..b73faa47 --- /dev/null +++ b/reference/opt/shaders/legacy/fragment/explicit-lod.legacy.vert @@ -0,0 +1,11 @@ +#version 100 + +uniform mediump sampler2D tex; + +varying mediump vec4 FragColor; + +void main() +{ + FragColor = texture2DLod(tex, vec2(0.4000000059604644775390625, 0.60000002384185791015625), 3.0); +} + diff --git a/reference/opt/shaders/legacy/vert/implicit-lod.legacy.vert b/reference/opt/shaders/legacy/vert/implicit-lod.legacy.vert index 6e441074..2d205049 100644 --- a/reference/opt/shaders/legacy/vert/implicit-lod.legacy.vert +++ b/reference/opt/shaders/legacy/vert/implicit-lod.legacy.vert @@ -4,6 +4,6 @@ uniform mediump sampler2D tex; void main() { - gl_Position = texture2D(tex, vec2(0.4000000059604644775390625, 0.60000002384185791015625)); + gl_Position = texture2DLod(tex, vec2(0.4000000059604644775390625, 0.60000002384185791015625), 0.0); } |