Answer the question
In order to leave comments, you need to log in
How to get time dependency in HLSL?
I understand shaders.
I want the fragment shader to return the X gradient from 0 to the given color.
At the same time, I want to insert a dependency on time into the alpha channel (so that the shader ... blinks)
skrinshoter.ru/s/280518/BPV9umbB?a
So: where can I get a variable with a changing time? What would the input data change.
Answer the question
In order to leave comments, you need to log in
Actually in the unit, the global variable is called
_Time.
is a float4 . xyzw - each of them represents time with a multiplier ..
well, in general, the set of built-in variables is described here
https://docs.unity3d.com/Manual/SL-UnityShaderVari...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question