Merged in various changes from the OSG-2.8 to being svn/trunk up to date.

This commit is contained in:
Robert Osfield
2009-02-19 14:24:10 +00:00
parent ca2d844c4f
commit 979d1e6be7
11 changed files with 982 additions and 42 deletions

View File

@@ -104,9 +104,9 @@ char volume_iso_frag[] = "uniform sampler3D baseTexture;\n"
" vec3 normal = normalize(grad);\n"
" float lightScale = 0.1 + abs(dot(normal.xyz, eyeDirection))*0.9;\n"
"\n"
" color.x *= lightScale;\n"
" color.y *= lightScale;\n"
" color.z *= lightScale;\n"
" color.x = lightScale;\n"
" color.y = lightScale;\n"
" color.z = lightScale;\n"
" }\n"
" \n"
" if (color.w>1.0) color.w = 1.0; \n"