I’m trying to add ambient light to a custom frag shader.
UNITY_LIGHTMODEL_AMBIENT always return the ambient color beside the Enviroment Lighting setting.

What am I doing wrong? Unity’s standard shader works properly.
Thanks!

I’m trying to add ambient light to a custom frag shader.
UNITY_LIGHTMODEL_AMBIENT always return the ambient color beside the Enviroment Lighting setting.

What am I doing wrong? Unity’s standard shader works properly.
Thanks!

Yep.
You want ShadeSH9(float4(worldNormal.xyz, 1));
Works like a charm =D. Thank you so much!