Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define lowp
- #define mediump
- #define highp
- #define MOTION_BLUR_SAMPLES 8
- uniform highp mat4 vertex_matrix;
- uniform highp mat4 vertex_velocity_matrix;
- uniform highp vec4 texmat0, texmat1, texmat2;
- uniform highp vec4 texmatD;
- attribute highp vec4 vertex_position;
- attribute lowp vec4 vertex_color0, vertex_color1;
- attribute highp vec2 vertex_texcoord0, vertex_texcoord1, vertex_texcoord2;
- attribute mediump vec3 vertex_normal;
- varying mediump vec2 velocity;
- varying lowp vec4 color0;
- varying lowp vec4 color1;
- varying lowp vec3 normal;
- varying highp vec2 texcoord0_0;
- varying highp vec2 texcoord1_0;
- varying highp vec2 texcoord2_0;
- varying highp vec3 texcoordD;
- void main() {
- gl_Position = vertex_matrix * vertex_position;
- highp vec4 vp1 = vertex_position;
- highp vec4 vp0 = vertex_velocity_matrix * vertex_position;
- velocity = (vp1.xy / vp1.w) - (vp0.xy / vp0.w);
- color0 = vertex_color0;
- color1 = vertex_color1;
- texcoord0_0 = vertex_texcoord0 * texmat0.xy + texmat0.zw;
- texcoord1_0 = vertex_texcoord1 * texmat1.xy + texmat1.zw;
- texcoord2_0 = vertex_texcoord2 * texmat2.xy + texmat2.zw;
- texcoordD = vec3(gl_Position.xy * texmatD.xy + texmatD.zw * gl_Position.w, gl_Position.w);
- normal = vertex_normal;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement