Initial commit
This commit is contained in:
13
engines/myst3/shaders/myst3_cube.vertex
Normal file
13
engines/myst3/shaders/myst3_cube.vertex
Normal file
@@ -0,0 +1,13 @@
|
||||
in vec3 position;
|
||||
in vec2 texcoord;
|
||||
|
||||
uniform float texScale;
|
||||
uniform mat4 mvpMatrix;
|
||||
|
||||
out vec2 Texcoord;
|
||||
|
||||
void main() {
|
||||
Texcoord = texcoord * texScale;
|
||||
|
||||
gl_Position = mvpMatrix * vec4(position, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user