Fix formatting.
This commit is contained in:
parent
46cc8567c8
commit
d968670960
19
src/draw.rs
19
src/draw.rs
|
@ -78,11 +78,11 @@ pub(crate) fn queue_outline_stencil_mesh(
|
||||||
.with_depth_mode(stencil_flags.depth_mode)
|
.with_depth_mode(stencil_flags.depth_mode)
|
||||||
.with_offset_zero(stencil_uniform.offset == 0.0)
|
.with_offset_zero(stencil_uniform.offset == 0.0)
|
||||||
.with_morph_targets(mesh.morph_targets.is_some());
|
.with_morph_targets(mesh.morph_targets.is_some());
|
||||||
let Ok(pipeline) = pipelines
|
let Ok(pipeline) =
|
||||||
.specialize(&pipeline_cache, &stencil_pipeline, key, &mesh.layout)
|
pipelines.specialize(&pipeline_cache, &stencil_pipeline, key, &mesh.layout)
|
||||||
else {
|
else {
|
||||||
continue; // No pipeline
|
continue; // No pipeline
|
||||||
};
|
};
|
||||||
let distance = rangefinder.distance(&Mat4::from_translation(stencil_uniform.origin));
|
let distance = rangefinder.distance(&Mat4::from_translation(stencil_uniform.origin));
|
||||||
stencil_phase.add(StencilOutline {
|
stencil_phase.add(StencilOutline {
|
||||||
entity,
|
entity,
|
||||||
|
@ -168,10 +168,11 @@ pub(crate) fn queue_outline_volume_mesh(
|
||||||
.with_offset_zero(volume_uniform.offset == 0.0)
|
.with_offset_zero(volume_uniform.offset == 0.0)
|
||||||
.with_hdr_format(view.hdr)
|
.with_hdr_format(view.hdr)
|
||||||
.with_morph_targets(mesh.morph_targets.is_some());
|
.with_morph_targets(mesh.morph_targets.is_some());
|
||||||
let Ok(pipeline) = pipelines
|
let Ok(pipeline) =
|
||||||
.specialize(&pipeline_cache, &outline_pipeline, key, &mesh.layout) else {
|
pipelines.specialize(&pipeline_cache, &outline_pipeline, key, &mesh.layout)
|
||||||
continue; // No pipeline
|
else {
|
||||||
};
|
continue; // No pipeline
|
||||||
|
};
|
||||||
let distance = rangefinder.distance(&Mat4::from_translation(volume_uniform.origin));
|
let distance = rangefinder.distance(&Mat4::from_translation(volume_uniform.origin));
|
||||||
if transparent {
|
if transparent {
|
||||||
transparent_phase.add(TransparentOutline {
|
transparent_phase.add(TransparentOutline {
|
||||||
|
|
Loading…
Reference in New Issue