We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0859f67 commit 36ada9dCopy full SHA for 36ada9d
crates/bevy_gizmos/src/lines.wgsl
@@ -15,7 +15,9 @@ struct VertexOutput {
15
}
16
17
struct FragmentOutput {
18
+#ifdef GIZMO_LINES_3D
19
@builtin(frag_depth) depth: f32,
20
+#endif
21
@location(0) color: vec4<f32>,
22
23
@@ -33,10 +35,12 @@ fn vertex(in: VertexInput) -> VertexOutput {
33
35
fn fragment(in: VertexOutput) -> FragmentOutput {
34
36
var out: FragmentOutput;
37
38
39
#ifdef DEPTH_TEST
40
out.depth = in.pos.z;
41
#else
42
out.depth = 1.0;
43
44
#endif
45
46
out.color = in.color;
0 commit comments