diff options
| author | 0undefined <oscar@nelin.dk> | 2026-03-11 06:46:39 +0000 |
|---|---|---|
| committer | 0undefined <oscar@nelin.dk> | 2026-03-11 06:46:39 +0000 |
| commit | a0e862d97f78d581e5ee1ee84289236e805e8c0f (patch) | |
| tree | 8c427823786bacaae42546d7528ac402808185ae /resources/quad.vert | |
| parent | 1155bc8d5fee33b3728916255a9c8ac411b24b57 (diff) | |
Fix normals being inverted
Diffstat (limited to 'resources/quad.vert')
| -rw-r--r-- | resources/quad.vert | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/quad.vert b/resources/quad.vert index acf00b2..bc9cb36 100644 --- a/resources/quad.vert +++ b/resources/quad.vert @@ -6,14 +6,16 @@ layout(location = 1) in vec2 uv; out vec2 UV; uniform mat4 MVP; +uniform mat4 modelPosition; void main() { gl_Position = MVP * - vec4( pos.x, pos.y, 0, 1); - UV = uv; + //modelPosition * + vec4(pos.x, pos.y, 0, 1); //vec4(pos.x, 1.0, pos.y, 1.0); + UV = uv; //fragColor.x = gl_Position.x; //fragColor.y = gl_Position.y; |
