- Home /
Question by
AndreyMust19 · Oct 10, 2012 at 09:34 PM ·
shader
How transfer data from shader to script?
I'm want calculate illumination of object in shader and transfer this value in script (by Material.GetFloat). I try write CGPROGRAM and set input float-parameter, but in script his value no changes. And tryed SetTexture in Pass-block, texture in script and in inspector no have changes too.
Comment