mirror of
https://codeberg.org/icewind/vbspview.git
synced 2026-06-03 18:24:09 +02:00
props in all views
This commit is contained in:
parent
9231de3741
commit
524897eb6a
1 changed files with 16 additions and 1 deletions
17
src/main.rs
17
src/main.rs
|
|
@ -220,6 +220,7 @@ fn main() -> Result<(), Error> {
|
||||||
let mut depth_material = DepthMaterial::default();
|
let mut depth_material = DepthMaterial::default();
|
||||||
depth_material.max_distance = Some(depth_max);
|
depth_material.max_distance = Some(depth_max);
|
||||||
model.render_with_material(&depth_material, &camera, &lights)?;
|
model.render_with_material(&depth_material, &camera, &lights)?;
|
||||||
|
props_model.render_with_material(&depth_material, &camera, &lights)?;
|
||||||
}
|
}
|
||||||
DebugType::ORM => {
|
DebugType::ORM => {
|
||||||
model.render_with_material(
|
model.render_with_material(
|
||||||
|
|
@ -227,14 +228,21 @@ fn main() -> Result<(), Error> {
|
||||||
&camera,
|
&camera,
|
||||||
&lights,
|
&lights,
|
||||||
)?;
|
)?;
|
||||||
|
props_model.render_with_material(
|
||||||
|
&ORMMaterial::from_physical_material(&model.material),
|
||||||
|
&camera,
|
||||||
|
&lights,
|
||||||
|
)?;
|
||||||
}
|
}
|
||||||
DebugType::POSITION => {
|
DebugType::POSITION => {
|
||||||
let position_material = PositionMaterial::default();
|
let position_material = PositionMaterial::default();
|
||||||
model.render_with_material(&position_material, &camera, &lights)?;
|
model.render_with_material(&position_material, &camera, &lights)?;
|
||||||
|
props_model.render_with_material(&position_material, &camera, &lights)?;
|
||||||
}
|
}
|
||||||
DebugType::UV => {
|
DebugType::UV => {
|
||||||
let uv_material = UVMaterial::default();
|
let uv_material = UVMaterial::default();
|
||||||
model.render_with_material(&uv_material, &camera, &lights)?;
|
model.render_with_material(&uv_material, &camera, &lights)?;
|
||||||
|
props_model.render_with_material(&uv_material, &camera, &lights)?;
|
||||||
}
|
}
|
||||||
DebugType::COLOR => {
|
DebugType::COLOR => {
|
||||||
model.render_with_material(
|
model.render_with_material(
|
||||||
|
|
@ -242,8 +250,15 @@ fn main() -> Result<(), Error> {
|
||||||
&camera,
|
&camera,
|
||||||
&lights,
|
&lights,
|
||||||
)?;
|
)?;
|
||||||
|
props_model.render_with_material(
|
||||||
|
&ColorMaterial::from_physical_material(&model.material),
|
||||||
|
&camera,
|
||||||
|
&lights,
|
||||||
|
)?;
|
||||||
|
}
|
||||||
|
DebugType::NONE => {
|
||||||
|
forward_pipeline.render_pass(&camera, &[&model, &props_model], &lights)?
|
||||||
}
|
}
|
||||||
DebugType::NONE => forward_pipeline.render_pass(&camera, &[&model], &lights)?,
|
|
||||||
};
|
};
|
||||||
gui.render()?;
|
gui.render()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue