Hello,
I was in the middle of working on a shader and noticed an error that said I exceeded 64 calculations in my CG program. Is there a way I could write 2 separate CG programs that will pass information from one CG program to the other when my calculations exceed 64?
Thank you,
Michael S. Lowe
Adding
#pragma target 3.0
Will make it use shader model 3 and increase the calculation count.
Ex : #pragma surface surf BlinnPhong alpha vertex:vert fullforwardshadows approxview
where “approxview” is used to spare some computing instructions (warn : quality lowered when the camera is very close to the object)