Fix shader type conversion.
This commit is contained in:
@@ -27,6 +27,6 @@ vec4 ColorForEffect(float effect, vec4 c)
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vec4 c = texture(WorldTexture, gl_FragCoord.xy / textureSize(WorldTexture, 0));
|
vec4 c = texture(WorldTexture, gl_FragCoord.xy / vec2(textureSize(WorldTexture, 0)));
|
||||||
fragColor = ColorForEffect(From, c) * Blend + ColorForEffect(To, c) * (1.0 - Blend);
|
fragColor = ColorForEffect(From, c) * Blend + ColorForEffect(To, c) * (1.0 - Blend);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user