avoid implicit conversion from vec4 to varying vec3
This commit is contained in:
parent
b20d7ab037
commit
b36725e471
@ -12,5 +12,5 @@ void main(void)
|
||||
{
|
||||
gl_Position = projection * modelview * vec4(pos, 1);
|
||||
pos_i = gl_Position.xyz;
|
||||
normal_i = modelview * vec4(normal, 0);
|
||||
normal_i = (modelview * vec4(normal, 0)).xyz;
|
||||
}
|
||||
|
@ -15,5 +15,5 @@ void main(void)
|
||||
gl_Position = projection * modelview * vec4(pos, 1);
|
||||
pos_i = gl_Position.xyz;
|
||||
tex_coord_i = tex_coord;
|
||||
normal_i = modelview * vec4(normal, 0);
|
||||
normal_i = (modelview * vec4(normal, 0)).xyz;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user