- Home /
Question by
waleedmm · Aug 05, 2017 at 09:50 AM ·
unity 5materialemissionillumination
setting material emission scale for emission map
hi, I'm trying to change the emission scale of self illuminating material that has emission map of it (not color), so I've tried this code :
//set object texture as illuminision texture
material.SetTexture ("_EmissionMap", mainTexture); }
//control emission value
ObjectMaterial.SetFloat("_EmissionScaleUI", 4.0f);
the texture map is show, but the emission scale is not changing, could you please tell me what should be done to let the scale work?
thanks
Comment