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:
@@ -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; " \
|
||||
" } " \
|
||||
" } " );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user