1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-17 18:36:43 +02:00
This commit is contained in:
XProger
2018-05-20 16:36:33 +03:00
parent 42b516c87b
commit e3e3c94d38

View File

@@ -254,7 +254,7 @@ uniform vec4 uFogParams;
#endif #endif
vec4 pack(in float value) { vec4 pack(in float value) {
float v = fract(value * vec4(1.0, 255.0, 65025.0, 16581375.0)); float4 v = fract(value * vec4(1.0, 255.0, 65025.0, 16581375.0));
return v - v.yzww * vec4(1.0/255.0, 1.0/255.0, 1.0/255.0, 0.0); return v - v.yzww * vec4(1.0/255.0, 1.0/255.0, 1.0/255.0, 0.0);
} }