mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +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
|
||||
let depth = 0.0;
|
||||
#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
|
||||
return vec4(depth, depth, depth, 1.0);
|
||||
} else if settings.show_normals == 1u {
|
||||
|
|
Loading…
Reference in a new issue