Show
Ignore:
Timestamp:
09/02/06 16:27:42 (8 years ago)
Author:
robert
Message:

Added setting of position.w to 1.0 and removed zscale hack.

Files:
1 modified

Legend:

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

    r5381 r5519  
    580580               "    position.x = gl_Vertex.x;\n" 
    581581               "    position.y = gl_Vertex.y;\n" 
    582                "    float zscale = 0.99;\n" 
    583                "    position.z = texture2D(terrainTexture, texcoord).r * zscale;\n" 
     582               "    position.z = texture2D(terrainTexture, texcoord).r;\n" 
     583               "    position.w = 1.0;\n" 
    584584               " \n" 
    585585               "    gl_Position     = gl_ModelViewProjectionMatrix * position;\n"