Reyien
03-20-2012, 06:29 AM
Hello,
I am trying to pass information between a vertex shader and fragment shader through the tessellation shaders. Indeed, I am computing lightning and color information in my vertex shader and try to pass through control and evaluator tessellation shaders with struct like :
out-{
vec4 AmbientColorexample;
...etc
}o;
in _{
vec4 AmbientColorexample;
...etc
} i;
and knowing the fact that I have to use array structure for the control and evaluator shader. However, I catch an error on my control tesselation shader info :
" error C7504 : OpenGl does not allow writing to input variable i"
I tried with other variable names but I still have this error. I already have searched on Google and nothing about it so... If someone can explain that problem and tell me if a solution exist, I would be very grateful.
I am trying to pass information between a vertex shader and fragment shader through the tessellation shaders. Indeed, I am computing lightning and color information in my vertex shader and try to pass through control and evaluator tessellation shaders with struct like :
out-{
vec4 AmbientColorexample;
...etc
}o;
in _{
vec4 AmbientColorexample;
...etc
} i;
and knowing the fact that I have to use array structure for the control and evaluator shader. However, I catch an error on my control tesselation shader info :
" error C7504 : OpenGl does not allow writing to input variable i"
I tried with other variable names but I still have this error. I already have searched on Google and nothing about it so... If someone can explain that problem and tell me if a solution exist, I would be very grateful.