the_lab_renderer icon indicating copy to clipboard operation
the_lab_renderer copied to clipboard

Shader build error - Pink on export

Open nickpittom opened this issue 9 years ago • 2 comments

Builds are turning Pink on Valve VR standard shader (and other lab shaders)

Previously I've been using 5.4.0p1, and recently got an error:

http://i.imgur.com/HGruBq2.png

Is there a known bug here? A known fix?

I've seen previously that using 'additive' does the same, however I am not using additive and actually even on a new scene with nothing in it it still occurs, which leads me to believe the shader is at fault

EDIT: Ok... problem solved perhaps. I commented out the entire IF statement surrounding the bug and it appears to work. As I have no real idea what it does (not really) I don't know if this breaks anything else... but for now I'm happy.

nickpittom avatar Oct 11 '16 12:10 nickpittom

It flips the normal direction of double sided materials. Commenting out this code makes solid double sided objects look strange. Ironically, it works well with leafs making them look translucent.

KevinComerford avatar Oct 11 '16 15:10 KevinComerford

Commenting it out seems to work, strangely, but I guess I'll keep an eye out for issues

nickpittom avatar Oct 11 '16 15:10 nickpittom