mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-14 06:01:10 +00:00
18 lines
345 B
Text
18 lines
345 B
Text
|
attribute vec4 attr_Position;
|
||
|
attribute vec3 attr_Normal;
|
||
|
|
||
|
uniform mat4 u_ModelViewProjectionMatrix;
|
||
|
varying vec3 var_Position;
|
||
|
varying vec3 var_Normal;
|
||
|
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
vec4 position = attr_Position;
|
||
|
|
||
|
gl_Position = u_ModelViewProjectionMatrix * position;
|
||
|
|
||
|
var_Position = position.xyz;
|
||
|
var_Normal = attr_Normal;
|
||
|
}
|