Fix for deferred avatar eyes shader failing to link on Intel GPU.
parent
2ca26ad19a
commit
5557254c93
|
|
@ -26,6 +26,7 @@
|
|||
uniform mat3 normal_matrix;
|
||||
uniform mat4 texture_matrix0;
|
||||
uniform mat4 modelview_projection_matrix;
|
||||
uniform mat4 modelview_matrix;
|
||||
|
||||
in vec3 position;
|
||||
in vec3 normal;
|
||||
|
|
@ -35,10 +36,12 @@ in vec2 texcoord0;
|
|||
out vec3 vary_normal;
|
||||
out vec4 vertex_color;
|
||||
out vec2 vary_texcoord0;
|
||||
out vec3 vary_position;
|
||||
|
||||
void main()
|
||||
{
|
||||
//transform vertex
|
||||
vary_position = (modelview_matrix * vec4(position.xyz, 1.0)).xyz;
|
||||
gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
|
||||
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue