#version 420 core #define COGL_VERSION 100 layout(std140, set = 0, binding = 0) uniform block { uniform mat4 cogl_modelview_matrix; uniform mat4 cogl_modelview_projection_matrix; uniform mat4 cogl_projection_matrix; }; layout(location = 0) in vec4 _cogl_tex_coord[1]; #define cogl_tex_coord0_in _cogl_tex_coord[0] #define cogl_color_in _cogl_color #define cogl_tex_coord_in _cogl_tex_coord layout(location = 1) in vec4 cogl_color_in; layout(location = 0) out vec4 cogl_color_out; layout(binding = 1) uniform sampler2D cogl_sampler0; vec4 cogl_layer0; vec4 cogl_texel0; vec4 cogl_real_texture_lookup0 (sampler2D tex, vec4 coords) { return texture (tex, coords.st); } vec4 cogl_texture_lookup0 (sampler2D cogl_sampler, vec4 cogl_tex_coord) { return cogl_real_texture_lookup0 (cogl_sampler, cogl_tex_coord); } vec4 cogl_real_generate_layer0 () { vec4 cogl_layer; cogl_layer.rgba = (cogl_color_in.rgba) * (cogl_texel0.rgba); return cogl_layer; } vec4 cogl_generate_layer0 () { return cogl_real_generate_layer0 (); } void cogl_generated_source () { cogl_texel0 = cogl_texture_lookup0 (cogl_sampler0, cogl_tex_coord0_in); cogl_layer0 = cogl_generate_layer0 (); cogl_color_out = cogl_layer0; } void main () { cogl_generated_source (); }