rendervulkan: Use textureLod()
May as well.
This commit is contained in:
parent
320a23220a
commit
b46cc14025
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ vec4 sampleLayer(sampler2D layerSampler, uint layerIdx, vec2 uv) {
|
||||||
coord.x >= texSize.x || coord.y >= texSize.y )
|
coord.x >= texSize.x || coord.y >= texSize.y )
|
||||||
return vec4(0.0f, 0.0f, 0.0f, u_borderAlpha[layerIdx]);
|
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) {
|
vec4 sampleLayer(uint layerIdx, vec2 uv) {
|
||||||
|
|
Loading…
Reference in a new issue