Using 2017.1, the standard shader now has a checkbox for “emission”.

The manual does not discuss this checkbox.
Is this now some type of optimization to uncheck “Emission” if the material is not emissive?
What is the difference between unchecking “Emission” vs having it checked with black emission color?
bgolus
2
You could just look at the shader code …
half3 Emission(float2 uv)
{
#ifndef _EMISSION
return 0;
#else
return tex2D(_EmissionMap, uv).rgb * _EmissionColor.rgb;
#endif
}
I have also question.
How can I Emission checkbox in standard shader, enabled via script?
In runtime, I want to Emission checked in script.
material.EnableKeyward(“_EMISSION”)?
I tried but it didn’t work.
Keyward! => Keyword
It should work!
gameObject.GetComponent<Renderer>().material.EnableKeyword("_EMISSION");