clutter-mash: LightSet GLSL Missing decelerations



I'm not sure if this project (clutter-mash) is still active, or if this is the right place to seek help but I'm having problems using Lights in mash.
It seems the GLSL code is missing some variables. Bellow is the error I'm getting.
I get these deceleration errors no matter what type of Light I use. Even if there is no Light in a LightSet I get the same error. I get the same error if I compile & run example/lights.c provided.
Any help would be appreciated,
Thanks.

```
(test:21360): Cogl-WARNING **: Failed to compile GLSL program:
src:

uniform mat3 mash_normal_matrix;

struct MashMaterialParameters {
  vec4 emission;
  vec4 ambient;
  vec4 diffuse;
  vec4 specular;
  float shininess;
};

uniform MashMaterialParameters mash_material;

void
main ()
{
  cogl_color_out = vec4 (0.0, 0.0, 0.0, 1.0);
  vec3 normal = normalize (mash_normal_matrix
                           * cogl_normal_in);
  vec4 homogenous_eye_coord
    = cogl_modelview_matrix * cogl_position_in;
  vec3 eye_coord = homogenous_eye_coord.xyz
    / homogenous_eye_coord.w;
  cogl_position_out =
    cogl_modelview_projection_matrix *
    cogl_position_in;
  cogl_tex_coord_out[0] = cogl_tex_coord_in;
}

error:
0:27(2): warning: empty declaration
0:44(17): error: `_cogl_tex_coord' undeclared
0:44(41): error: `cogl_tex_coord0_in' undeclared



(test:21360): Cogl-WARNING **: Failed to link GLSL program:
error: linking with uncompiled shader
```



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]