rendervulkan: Use textureLod()

May as well.
This commit is contained in:
Joshua Ashton 2021-09-15 02:36:52 +01:00 committed by Pierre-Loup A. Griffais
parent 320a23220a
commit b46cc14025

View file

@ -35,7 +35,7 @@ vec4 sampleLayer(sampler2D layerSampler, uint layerIdx, vec2 uv) {
coord.x >= texSize.x || coord.y >= texSize.y )
return vec4(0.0f, 0.0f, 0.0f, u_borderAlpha[layerIdx]);
return texture(layerSampler, coord);
return textureLod(layerSampler, coord, 0.0f);
}
vec4 sampleLayer(uint layerIdx, vec2 uv) {