speed up gfx, colored lighting is out for now
This commit is contained in:
parent
3c3e961995
commit
01e6059dd1
17 changed files with 1055 additions and 250 deletions
|
|
@ -3,7 +3,7 @@ extern crate alloc;
|
|||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
|
||||
use crate::math::{Vec3, VEC3_ZERO};
|
||||
use crate::math::Vec3;
|
||||
use crate::pxl8::*;
|
||||
|
||||
pub type Vertex = pxl8_bsp_vertex;
|
||||
|
|
@ -31,8 +31,8 @@ impl Default for Face {
|
|||
side: 0,
|
||||
styles: [0; 4],
|
||||
material_id: 0,
|
||||
aabb_min: VEC3_ZERO,
|
||||
aabb_max: VEC3_ZERO,
|
||||
aabb_min: Vec3::ZERO,
|
||||
aabb_max: Vec3::ZERO,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ impl Default for Plane {
|
|||
fn default() -> Self {
|
||||
Self {
|
||||
dist: 0.0,
|
||||
normal: VEC3_ZERO,
|
||||
normal: Vec3::ZERO,
|
||||
type_: 0,
|
||||
}
|
||||
}
|
||||
|
|
@ -76,7 +76,7 @@ impl Default for Plane {
|
|||
|
||||
impl Default for Vertex {
|
||||
fn default() -> Self {
|
||||
Self { position: VEC3_ZERO }
|
||||
Self { position: Vec3::ZERO }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue