0

Post Effect - "#pragma multi_compile_x" breaks the shader and resets video card driver SF v1.21

Vaclav 9 år siden 0

I'm using SF v1.21 and I start of by using post-effect template.

Then when I try to apply the shader to a camera, it freezes and then unity crashes with a video card driver reseted.


After some trial&error I found that these #pragmas are causing this :

#pragma multi_compile_fwdbase_fullshadows
#pragma multi_compile_shadowcaster


Basically every #pragma multi_compile does it. Commenting them out, works flawlessly.

Possibility to check / uncheck this pragma in shader settings would fix this, I guess.


There's additional annoying thing, that I can't set which passes are being generated, basically I just want to get rid of the shadow passes. If only I could disable them :)

Kundesupport af UserEcho