From fb55dd6e62b09b80676e68bb664774abd1f74264 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Tue, 27 Feb 2018 21:38:25 +0300 Subject: [PATCH] shader fix --- src/system.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system.c b/src/system.c index 72dd102..af49d0c 100644 --- a/src/system.c +++ b/src/system.c @@ -980,17 +980,17 @@ static char* prepareShader(const char* code) static void loadCrtShader() { char* vertextShader = prepareShader("\ - attribute vec2 gpu_Vertex;\n\ + attribute vec3 gpu_Vertex;\n\ attribute vec2 gpu_TexCoord;\n\ - attribute mediump vec4 gpu_Color;\n\ + attribute vec4 gpu_Color;\n\ uniform mat4 gpu_ModelViewProjectionMatrix;\n\ - varying mediump vec4 color;\n\ + varying vec4 color;\n\ varying vec2 texCoord;\n\ void main(void)\n\ {\n\ color = gpu_Color;\n\ texCoord = vec2(gpu_TexCoord);\n\ - gl_Position = gpu_ModelViewProjectionMatrix * vec4(gpu_Vertex, 0.0, 1.0);\n\ + gl_Position = gpu_ModelViewProjectionMatrix * vec4(gpu_Vertex, 1.0);\n\ }"); u32 vertex = 0;