From Konstantin Matveyev, submitted by Valery Bickov:

"There is error in WoW shader, you can see it by this simple example:
osgviewer cessna.osg --wowvx-42 --clear-color 0,0,0

Clear color may be choosed any with at least one component equals to 0
or 1. In my case I see weird blinking between normal image and image
with depth map at right side on the screen."
This commit is contained in:
Robert Osfield
2009-03-10 17:47:54 +00:00
parent 9cccd087a8
commit 5157f06bcd

View File

@@ -1603,9 +1603,9 @@ void View::setUpViewForWoWVxDisplay(unsigned int screenNum, unsigned char wow_co
" float pos = gl_FragCoord.x/256.0; " \
" float blue = texture1D(wow_header, pos).b; " \
" if ( blue < 0.5) " \
" gl_FragColor.b -=0.5; " \
" gl_FragColor.b = 0.0; " \
" else " \
" gl_FragColor.b += 0.5; " \
" gl_FragColor.b = 1.0; " \
" } " \
" } " );