- Home /
Question by
alia · May 11, 2011 at 04:30 AM ·
shadercustom-shaderglsl
Shader error: Shader program of type 'vp' already exists at line ....
Hi All, Couldn't find the answer to this one anywhere. Am I missing something obvious or does GLSL not work for anyone else?
I tried to make the smallest shader but it gives me the following error:
Shader error in 'MinShader': Shader program of type 'vp' already exists at line 52
The shader Im using:
Shader "MinShader" { Properties { _Color ("Main Color", Color) = (1,1,1,1) } SubShader { GLSLPROGRAM #ifdef VERTEX void main() { } #endif #ifdef FRAGMENT void main() { } #endif ENDGLSL } FallBack "Diffuse" }
Comment
Best Answer
Answer by alia · May 11, 2011 at 04:35 AM
Ok yes dumb mistake.. as soon as I post I see im missing the Pass{}
grrr
Your answer
Follow this Question
Related Questions
How can I make my own shader include file (.cginc or .glslinc)? 2 Answers
Mirror + Shadows shader. 5 Answers
clipping shader for OpenGL quad 0 Answers