Merge pull request #6429 from orbea/snow

Fix apitrace shader compiler warning.
This commit is contained in:
Twinaphex 2018-03-21 05:28:59 +01:00 committed by GitHub
commit 4fa50d14ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ static const char* stock_fragment_xmb_snowflake = GLSL(
float snow(vec3 pos, vec2 uv, float o) float snow(vec3 pos, vec2 uv, float o)
{ {
vec2 d = (pos.xy - uv); vec2 d = (pos.xy - uv);
float a = atan(d.y,d.x) + sin(atime*1.0 + o) * 10.0; float a = atan(d.y,d.x) + sin(time*1.0 + o) * 10.0;
float dist = d.x*d.x + d.y*d.y; float dist = d.x*d.x + d.y*d.y;
@ -73,4 +73,4 @@ static const char* stock_fragment_xmb_snowflake = GLSL(
gl_FragColor = vec4(col(p)); gl_FragColor = vec4(col(p));
} }
); );