Skip to content

LIghtSet GLSL Missing declerations #1

@jashandeep-sohi

Description

@jashandeep-sohi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions