mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 21:47:45 +00:00
Mass refactoring part 1/2: establishing multiple subprojects, moving source files to their new location, adding resources/templates to version control
This commit is contained in:
24
resources/shaders/TextureShader.vs
Normal file
24
resources/shaders/TextureShader.vs
Normal file
@@ -0,0 +1,24 @@
|
||||
#version 330 core
|
||||
|
||||
// Input
|
||||
layout(location = 0) in vec3 Position;
|
||||
layout(location = 4) in vec2 Tex0;
|
||||
|
||||
// Output
|
||||
out vec2 TexCoord;
|
||||
|
||||
// Uniforms
|
||||
layout(std140) uniform MVPBlock
|
||||
{
|
||||
mat4 ModelMtx;
|
||||
mat4 ViewMtx;
|
||||
mat4 ProjMtx;
|
||||
};
|
||||
|
||||
// Main
|
||||
void main()
|
||||
{
|
||||
mat4 MVP = ModelMtx * ViewMtx * ProjMtx;
|
||||
gl_Position = vec4(Position, 1) * MVP;
|
||||
TexCoord = Tex0;
|
||||
};
|
||||
Reference in New Issue
Block a user