mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-04 19:24:22 +00:00
gl2shim: remove float suffix in shaders, that makes glsl100 work in swiftshader
This commit is contained in:
parent
342e0d3e2e
commit
fbc312b6cf
@ -63,7 +63,7 @@
|
|||||||
"#endif\n"
|
"#endif\n"
|
||||||
"#if FEAT_FOG\n"
|
"#if FEAT_FOG\n"
|
||||||
"float fogDist = gl_FragCoord.z / gl_FragCoord.w;\n"
|
"float fogDist = gl_FragCoord.z / gl_FragCoord.w;\n"
|
||||||
"float fogRate = clamp(exp(-uFog.w * fogDist), 0.f, 1.f);\n"
|
"float fogRate = clamp(exp(-uFog.w * fogDist), 0.0, 1.0);\n"
|
||||||
"c.rgb = mix(uFog.rgb, c.rgb, fogRate);\n"
|
"c.rgb = mix(uFog.rgb, c.rgb, fogRate);\n"
|
||||||
"#endif\n"
|
"#endif\n"
|
||||||
"oFragColor = c;\n"
|
"oFragColor = c;\n"
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
"\n"
|
"\n"
|
||||||
"void main()\n"
|
"void main()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
"gl_Position = uMVP * vec4(inPosition,1.0f);\n"
|
"gl_Position = uMVP * vec4(inPosition,1.0);\n"
|
||||||
"#if ATTR_COLOR\n"
|
"#if ATTR_COLOR\n"
|
||||||
"vColor = inColor;\n"
|
"vColor = inColor;\n"
|
||||||
"#endif\n"
|
"#endif\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user