How can I add the environment reflection option in the Advanced Options of the Shader?

I am making a shader with shader graph and I have realized that the option to activate and deactivate the environment reflection is not present. Is there a way to add it?

(Universal Render Pipeline/Lit)
8979535--1235215--upload_2023-4-28_15-7-7.png

(My Shader)
8979535--1235218--upload_2023-4-28_15-9-4.png

1 Like

Hi, this is controlled by a shader keyword that is used in URP Lit lighting model.

URP shader graph also uses this Lit lighting model, so you can add this option with a boolean keyword. If you need to invert the checkbox behavior, you should create a custom shader editor GUI for it.

Note:
These keywords only control light calculations handled by shader graph. So it won’t disable reflection probe results from your nodes automatically.

3 Likes