- Home /
Question by
AntonStruyk · Oct 24, 2012 at 06:09 PM ·
shadersyntax
What does 'SetTexture[_]' mean in a shader?
I'm looking at a shader and trying to figure out what it's doing, and I see the following line:
SetTexture[_] { ..... Some combiner }
What does the '_' refer to? I can't find any reference to it in the shader docs.
Comment
Best Answer
Answer by AntonStruyk · Oct 24, 2012 at 08:44 PM
Found an answer somewhere else. Apparently "SetTexture [_]" just means you don't care about binding to an actual texture, you're just going to do another combiner stage using the previous result.
Your answer
![](https://koobas.hobune.stream/wayback/20220613082824im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Customize slider in Shader 3 Answers
Literals in ShaderLab Fixed-Function Shaders 0 Answers
Declaring a matrix parameter in a shader 1 Answer
Arrays in shaders 0 Answers