SteamVR Developer Hardware

SteamVR Developer Hardware

View Stats:
lcy2080 7 Oct, 2016 @ 4:32am
i find some problem in vr_standard code.
if you have same problem, it can be help you

There is a miss point in the lab renderer shadercode. in vr_standard shader code vNormalWs is activate when !S_UNLIT. but in vr_standard code line 355, you can see a error

#if ( S_RENDER_BACKFACES )
{
i.vNormalWs.xyz *= ( bIsFrontFace ? 1.0 : -1.0 );
}
#endif

if you use option unlit and render backfaces, error will be occur.

change code like this :

#if ( S_RENDER_BACKFACES && !S_UNLIT )
{
i.vNormalWs.xyz *= ( bIsFrontFace ? 1.0 : -1.0 );
}
#endif
< >
Showing 1-2 of 2 comments
lcy2080 7 Oct, 2016 @ 4:34am 
when occur "invalid vlavla~ 'vNormalWs'"
djk752 29 Jan @ 9:06pm 
This seems to be working, thank you!
< >
Showing 1-2 of 2 comments
Per page: 15 30 50

Date Posted: 7 Oct, 2016 @ 4:32am
Posts: 2