2021-32-bit-holiday-jam/shaders/pumpkin-vert.glsl

30 lines
734 B
Plaintext
Raw Normal View History

#define lowp
#define mediump
#define highp
#line 0
uniform highp mat4 uni_mvp;
2020-03-07 03:36:05 +00:00
uniform lowp vec3 uni_albedo;
2020-03-07 15:05:59 +00:00
uniform lowp vec3 uni_object_space_sky;
2020-03-07 14:16:51 +00:00
uniform lowp vec3 uni_object_space_light;
attribute highp vec4 attr_pos;
attribute mediump vec2 attr_uv;
attribute lowp vec3 attr_normal;
2020-03-07 03:36:05 +00:00
varying lowp vec3 vary_color;
varying lowp vec3 vary_normal;
2020-03-07 03:36:05 +00:00
varying mediump vec2 vary_uv;
2020-03-07 14:16:51 +00:00
varying lowp vec3 vary_object_space_light;
2020-03-07 15:05:59 +00:00
varying lowp vec3 vary_object_space_sky;
void main (void) {
vary_uv = attr_uv;
vary_normal = attr_normal;
2020-03-07 03:36:05 +00:00
vary_color = uni_albedo * uni_albedo;
2020-03-07 14:16:51 +00:00
vary_object_space_light = normalize (uni_object_space_light);
2020-03-07 15:05:59 +00:00
vary_object_space_sky = normalize (uni_object_space_sky);
gl_Position = uni_mvp * attr_pos;
}