Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
GameNoodle/shaders/tile.vert
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21 lines (17 sloc)
391 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 core | |
layout (location = 0) in vec4 position; | |
layout (location = 1) in vec2 tc; | |
uniform mat4 pr_matrix; | |
uniform mat4 vw_matrix = mat4(1.0); | |
uniform mat4 ml_matrix = mat4(1.0); | |
out DATA | |
{ | |
vec2 tc; | |
vec3 position; | |
} vs_out; | |
void main() | |
{ | |
gl_Position = pr_matrix * vw_matrix * ml_matrix * position; | |
vs_out.tc = tc; | |
vs_out.position = vec3(vw_matrix * ml_matrix * position); | |
} |