From 6038a5ab6f99534de4192568d39279ebf765ffad Mon Sep 17 00:00:00 2001 From: serk Date: Sat, 21 Jan 2017 23:41:00 +0100 Subject: [PATCH] minor fixes --- Resources/halo.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/halo.frag b/Resources/halo.frag index 5156e5d..b9e6a55 100644 --- a/Resources/halo.frag +++ b/Resources/halo.frag @@ -9,8 +9,8 @@ void main(void) { // if (blue) color = vec4(0.,153.,253.,transpa)/255.; vec4 color = vec4 (255.,255.,0.,transpa)/255.; //amarillo = 0 - if (type == 1) color = vec4(122.,202.,255.,transpa)/255.; //azul = 1 - else if (type == 2) color = vec4(255.,167.,245.,transpa)/255.; //rosa = 2 + if (type == 1.) color = vec4(122.,202.,255.,transpa)/255.; //azul = 1 + else if (type == 2.) color = vec4(255.,167.,245.,transpa)/255.; //rosa = 2 vec4 pixel = texture2D(texture, gl_TexCoord[0].xy); gl_FragColor = pixel * color;