Zaylyaev / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

texture2DLod undefined in fragment shader for Lighting + Steep Parallax #473

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Execute the parallax test on a baseline OpenGL2 platform

What is the expected output? What do you see instead?
You will receive an error like this:
"no matching function for call to 'texture2DLod(sampler2D, vec2, float)'"
Unfortunately, the baseline GLSL 1.0 - 1.1 specification prohibits the use of 
the sampler2DLod function in the fragment shader. The Lighting.frag shader 
should check the GLSL version and fallback to regular parallax on those 
platforms.

Original issue reported on code.google.com by ShadowIs...@gmail.com on 23 Feb 2012 at 7:08

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 29 May 2012 at 2:47