summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2024-02-12 15:39:27 +0000
committer0undefined <oscar@nelin.dk>2025-02-26 12:50:09 +0000
commit6890ca55ba38682e3fc72dc6722954d376ae1277 (patch)
treee11391ea52734e59805e7c07ba10a376f85f5a0a /resources
parentb2bd9bccd8fffaae76c7f2f8373e641a6dd029d2 (diff)
Update for eba4a131
Diffstat (limited to 'resources')
-rw-r--r--resources/shader.vertexshader4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/shader.vertexshader b/resources/shader.vertexshader
index 657053e..55b5250 100644
--- a/resources/shader.vertexshader
+++ b/resources/shader.vertexshader
@@ -13,5 +13,7 @@ void main() {
gl_Position = MVP * vec4(vertexPosition_modelspace, 1);
// gl_Position.w = 1.0;
- fragmentcolor = vertexColor;
+ fragmentcolor.r = gl_position.x; //= vertexColor;
+ fragmentcolor.g = gl_position.y; //= vertexColor;
+ fragmentcolor.b = gl_position.z; //= vertexColor;
}