This maybe very silly or beginner’s question.
However, please someone answer this question so I can go on.
I just started to dig into glsl.
I took workshop hosted by Wesley Smith in Korea, read Andrew Benson’s ‘your first shader’, and checked ‘jitter-shaders’ in max5 folder.
And finally started to read orange book.
I encountered a problem when I tried to implement the first shader in orange book into jitter.
I never saw variables attribute used in previous reading.
I read over and over but I can’t fully understand how attribute works.
first shader in orange book
uniform float CoolestTemp;
uniform float TempRange;
attribute float VertexTemp;
varying float Temperature;
Temperature = (VertexTemp – CoolestTemp) / TempRange;