Commit 8bdb8524 authored by Janne Koskinen's avatar Janne Koskinen

Fix mapcoloreffect shader

some glsl compilers don't implicitly convert from int to float
parent 893442db
......@@ -30,10 +30,10 @@ void frag()
vec4 outcolor = vec4(0.0,0.0,0.0,1.0);
if(origColor.r > 0.1){
outcolor = descolor * vec4(road_color,1.0)*4;
outcolor = descolor * vec4(road_color,1.0)*4.0;
}
else if(origColor.b > 0.1){
outcolor = descolor * vec4(water_color,1.0)*8;
outcolor = descolor * vec4(water_color,1.0)*8.0;
}
else{
outcolor = vec4(land_color,1.0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment