take hermite changes from #879

makes the shader look a lot better and less pixelated
This commit is contained in:
goeiecool9999 2024-10-27 21:36:48 +01:00
parent 49b6fb4924
commit 0ea358b95f

View File

@ -120,7 +120,7 @@ vec3 BicubicHermiteTexture(vec2 uv, vec4 texelSize)
vec2 frac = fract(pixel);
pixel = floor(pixel) / texelSize.zw - vec2(texelSize.xy/2.0);
vec4 doubleSize = texelSize*texelSize;
vec4 doubleSize = texelSize*2.0;
vec3 C00 = texture(textureSrc, pixel + vec2(-texelSize.x ,-texelSize.y)).rgb;
vec3 C10 = texture(textureSrc, pixel + vec2( 0.0 ,-texelSize.y)).rgb;