From 3c7824d51e1c72b75e400f8e8caa31256334051b Mon Sep 17 00:00:00 2001 From: ? Date: Mon, 25 Feb 2019 18:15:24 +0100 Subject: [PATCH] 3d:: fixed implicit conversion warning in GLSL --- shaders.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shaders.cpp b/shaders.cpp index 5f5a7fde..26723e5d 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -566,10 +566,10 @@ void init() { sh3, "vColor.xyz = vColor.xyz * (1.0 - acosh(t[3]) / uFog);", sr3, "vColor.xyz = vColor.xyz * (1.0 - sqrt(t[0]*t[0] + t[1]*t[1] + t[2]*t[2]) / uFog);", - ss30, "vColor.xyz = vColor.xyz * (1 - (6.284 - acos(t[3])) / uFog); t = -t; ", - ss31, "vColor.xyz = vColor.xyz * (1 - (6.284 - acos(t[3])) / uFog); t.xyz = -t.xyz; ", - ss32, "vColor.xyz = vColor.xyz * (1 - acos(t[3]) / uFog); t.w = -t.w; ", // 2pi - ss33, "vColor.xyz = vColor.xyz * (1 - acos(t[3]) / uFog); ", + ss30, "vColor.xyz = vColor.xyz * (1.0 - (6.284 - acos(t[3])) / uFog); t = -t; ", + ss31, "vColor.xyz = vColor.xyz * (1.0 - (6.284 - acos(t[3])) / uFog); t.xyz = -t.xyz; ", + ss32, "vColor.xyz = vColor.xyz * (1.0 - acos(t[3]) / uFog); t.w = -t.w; ", // 2pi + ss33, "vColor.xyz = vColor.xyz * (1.0 - acos(t[3]) / uFog); ", sh3 || sr3,"t[3] = 1.0;", band || hp || s3,"gl_Position = uP * t;",