Reply To: Shader Error: variable ‘col’ used without having been completely initialized

Forum Archive Shader Error: variable ‘col’ used without having been completely initialized Reply To: Shader Error: variable ‘col’ used without having been completely initialized

#74752
Martin Bergwerf
Participant

    Sorry, I’m afraid I don’t know Unity or  GLSL, but (stupid idea, probably), if the compiler is complaining that col is not initialized, couldn’t you simply initialize it, when it is declared… so, change  line 36 to something like:    half4 col = 0;