Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIghtSet GLSL Missing declerations #1

Open
jashandeep-sohi opened this issue Nov 7, 2013 · 0 comments
Open

LIghtSet GLSL Missing declerations #1

jashandeep-sohi opened this issue Nov 7, 2013 · 0 comments

Comments

@jashandeep-sohi
Copy link

I'm not sure if this project is still active, or if this is the right place to seek help but I'm having problems using Lights.
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.
Any help would be apprecited,
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant