library: render: object: remove index field
This commit is contained in:
parent
2e224b280d
commit
c2fd001430
|
@ -20,9 +20,6 @@ pub struct Object {
|
||||||
pub material: MaterialEnum,
|
pub material: MaterialEnum,
|
||||||
/// The `Object`'s texture
|
/// The `Object`'s texture
|
||||||
pub texture: TextureEnum,
|
pub texture: TextureEnum,
|
||||||
#[serde(skip_deserializing)]
|
|
||||||
/// Index inside the `BVH`
|
|
||||||
index: usize,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Object {
|
impl Object {
|
||||||
|
@ -55,7 +52,6 @@ impl Object {
|
||||||
shape,
|
shape,
|
||||||
material,
|
material,
|
||||||
texture,
|
texture,
|
||||||
index: 0,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,7 +107,6 @@ mod test {
|
||||||
shape: shape.into(),
|
shape: shape.into(),
|
||||||
material: material.into(),
|
material: material.into(),
|
||||||
texture: texture.into(),
|
texture: texture.into(),
|
||||||
index: 0,
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue