mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
3d:: fixed implicit conversion warning in GLSL
This commit is contained in:
parent
fe174d8873
commit
3c7824d51e
@ -566,10 +566,10 @@ void init() {
|
|||||||
sh3, "vColor.xyz = vColor.xyz * (1.0 - acosh(t[3]) / uFog);",
|
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);",
|
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; ",
|
ss30, "vColor.xyz = vColor.xyz * (1.0 - (6.284 - acos(t[3])) / uFog); t = -t; ",
|
||||||
ss31, "vColor.xyz = vColor.xyz * (1 - (6.284 - acos(t[3])) / uFog); t.xyz = -t.xyz; ",
|
ss31, "vColor.xyz = vColor.xyz * (1.0 - (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
|
ss32, "vColor.xyz = vColor.xyz * (1.0 - acos(t[3]) / uFog); t.w = -t.w; ", // 2pi
|
||||||
ss33, "vColor.xyz = vColor.xyz * (1 - acos(t[3]) / uFog); ",
|
ss33, "vColor.xyz = vColor.xyz * (1.0 - acos(t[3]) / uFog); ",
|
||||||
sh3 || sr3,"t[3] = 1.0;",
|
sh3 || sr3,"t[3] = 1.0;",
|
||||||
|
|
||||||
band || hp || s3,"gl_Position = uP * t;",
|
band || hp || s3,"gl_Position = uP * t;",
|
||||||
|
Loading…
Reference in New Issue
Block a user