Use textureSampleCompare instead of textureSampleCompareLevel
This commit is contained in:
parent
091bdcaa98
commit
2616b2f5c9
1 changed files with 7 additions and 7 deletions
|
@ -87,7 +87,7 @@ fn sample_direct_light(index: i32, light_coords: vec4<f32>) -> f32 {
|
||||||
if (phase == 2 || phase == 3) {
|
if (phase == 2 || phase == 3) {
|
||||||
offset.y = -offset.y;
|
offset.y = -offset.y;
|
||||||
}
|
}
|
||||||
let s = textureSampleCompareLevel(
|
let s = textureSampleCompare(
|
||||||
t_light_depth,
|
t_light_depth,
|
||||||
s_light_depth,
|
s_light_depth,
|
||||||
light_local + offset,
|
light_local + offset,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue