Show
Ignore:
Timestamp:
07/05/06 15:18:00 (8 years ago)
Author:
robert
Message:

Added vertex program hack to get round apparent NVidia bug when handling
vertex texture read.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgshaderterrain/osgshaderterrain.cpp

    r4868 r5248  
    580580               "    position.x = gl_Vertex.x;\n" 
    581581               "    position.y = gl_Vertex.y;\n" 
    582                "    position.z = texture2D(terrainTexture, texcoord).r;\n" 
     582               "    float zscale = 0.99;\n" 
     583               "    position.z = texture2D(terrainTexture, texcoord).r * zscale;\n" 
    583584               " \n" 
    584585               "    gl_Position     = gl_ModelViewProjectionMatrix * position;\n"