Quantcast
Channel: Latest Questions by frogsbo
Viewing all articles
Browse latest Browse all 90

Sometimes Shader CG doesn't listen to if condition, Why?

$
0
0
i had an if condition which works, if (_Mode <= 3.0) { and if i do if (_Mode == 3.0 || _Mode == 4.0) { the shader compiles but doesnt execute the if condition, it only runs the rest of the code.

Viewing all articles
Browse latest Browse all 90

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>