Unity Discussions
How to declare and modify and use a static variable in shader?
Unity Engine
Shaders
JohnSonLi
January 20, 2015, 2:34am
1
I need the sample code…
Phantomx
January 20, 2015, 9:36pm
2
ex:
static const float floatName = 1.0;
Related topics
Topic
Replies
Views
Activity
Can we declare static shader variables?
Unity Engine
Shaders
,
Question
2
828
January 27, 2023
Shader read static variable in C# script?
Unity Engine
Shaders
5
5697
February 26, 2013
statics and ComputeShaders
Unity Engine
Graphics
,
Question
4
587
April 29, 2023
Where to put static consts in URP shader file?
Unity Engine
URP
,
com_unity_render-pipelines_universal
3
1677
June 24, 2023
How to initialize, reset and purge shader/material variables
Unity Engine
Shaders
1
3980
May 7, 2022