Fix bad merge, replace frag_coord with mesh.position

This commit is contained in:
Marco Buono 2023-10-19 01:18:03 -03:00
parent 6e6f283b33
commit dff2f3f4c4

View file

@ -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 {