From b4f4720f51be8fbc7864e59c5d4001237fd4d915 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 26 Apr 2016 22:11:58 +0200 Subject: [PATCH] (Cg) Update Cg simple ribbon courtesy of teepee --- gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h b/gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h index 95c464bc88..fa7fed193f 100644 --- a/gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h +++ b/gfx/drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h @@ -23,7 +23,7 @@ static const char *stock_xmb_simple = "void main_vertex\n" "(\n" -" float4 position : POSITION,\n" +" float2 position : POSITION,\n" " float4 color : COLOR,\n" " float2 texCoord : TEXCOORD0,\n" @@ -34,7 +34,7 @@ static const char *stock_xmb_simple = " out float2 otexCoord : TEXCOORD\n" ")\n" "{\n" -"float3 v = position.xyz;\n" +"float3 v = float3(position.x, 0.0, position.y);\n" "float3 v2 = v;\n" "v2.x = v2.x + IN.time / 2.0;\n" "v2.z = v.z * 3.0;\n"