mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 06:30:19 +00:00
Fix bad merge, replace frag_coord
with mesh.position
This commit is contained in:
parent
6e6f283b33
commit
dff2f3f4c4
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ fn fragment(
|
||||||
#ifdef WEBGL2
|
#ifdef WEBGL2
|
||||||
let depth = 0.0;
|
let depth = 0.0;
|
||||||
#else
|
#else
|
||||||
let depth = bevy_pbr::prepass_utils::prepass_depth(frag_coord, sample_index);
|
let depth = bevy_pbr::prepass_utils::prepass_depth(mesh.position, sample_index);
|
||||||
#endif
|
#endif
|
||||||
return vec4(depth, depth, depth, 1.0);
|
return vec4(depth, depth, depth, 1.0);
|
||||||
} else if settings.show_normals == 1u {
|
} else if settings.show_normals == 1u {
|
||||||
|
|
Loading…
Reference in a new issue