+5

Should be able to set Cubemap property as "Global"

eldee 8 years ago updated by Scatimon 7 years ago 3

SetGlobalTexture support it (they even use a cubemap as an example), but we're not able to make the property global in Shader Forge.


http://docs.unity3d.com/ScriptReference/Shader.SetGlobalTexture.html

+1

Also interesting! How to make a samplerCUBE global? We use the generated cubemap skybox in many materials, and would like to use the SetGlobalTexture.

We need the same thing. We use generated cubemap skybox in all of our materials.

At the moment, we manually remove from the property, cubemap (so and other texture) declaration. How much it is correct?