ARG
This commit is contained in:
@@ -73,6 +73,9 @@ fn unpack_color(color: u32) -> vec4<f32>
|
||||
@group(0) @binding(5) var<storage, read_write> structure_table_pointer: array<u32>;
|
||||
@group(0) @binding(6) var<storage, read_write> structure_table_request_buffer: array<atomic<u32>>;
|
||||
|
||||
@group(1) @binding(0) var prepass_depth_sampler: sampler;
|
||||
@group(1) @binding(1) var prepass_depth: texture_2d<f32>;
|
||||
|
||||
@vertex
|
||||
fn chunk(@builtin(vertex_index) index: u32, @location(0) position: vec3<f32>, @location(1) id: u32) -> VertexOutput
|
||||
{
|
||||
@@ -357,6 +360,7 @@ struct FragmentOutput {
|
||||
}
|
||||
|
||||
struct FragmentPrepassOutput {
|
||||
@location(0) depth_prepass: f32, // Equivalent to gl_FragDepth
|
||||
@builtin(frag_depth) depth: f32, // Equivalent to gl_FragDepth
|
||||
}
|
||||
|
||||
@@ -377,6 +381,7 @@ fn fragment_prepass(in: VertexOutput) -> FragmentPrepassOutput
|
||||
//frag_out.color = result.color;
|
||||
|
||||
frag_out.depth = depth;
|
||||
frag_out.depth_prepass = depth;
|
||||
return frag_out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user