Added vertex program hack to get round apparent NVidia bug when handling
vertex texture read.
This commit is contained in:
@@ -579,7 +579,8 @@ osg::Node* ForestTechniqueManager::createScene(unsigned int /*numTreesToCreates*
|
||||
" vec4 position;\n"
|
||||
" position.x = gl_Vertex.x;\n"
|
||||
" position.y = gl_Vertex.y;\n"
|
||||
" position.z = texture2D(terrainTexture, texcoord).r;\n"
|
||||
" float zscale = 0.99;\n"
|
||||
" position.z = texture2D(terrainTexture, texcoord).r * zscale;\n"
|
||||
" \n"
|
||||
" gl_Position = gl_ModelViewProjectionMatrix * position;\n"
|
||||
" gl_FrontColor = vec4(1.0,1.0,1.0,1.0);\n"
|
||||
|
||||
Reference in New Issue
Block a user