add color changing
This commit is contained in:
parent
94432b0c0d
commit
210d5078c6
7 changed files with 129 additions and 54 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#![cfg_attr(target_arch = "spirv", no_std)]
|
||||
|
||||
use glam::Mat4;
|
||||
use glam::{Mat4, Vec3};
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone)]
|
||||
|
|
@ -8,4 +8,5 @@ pub struct UniformBufferObject {
|
|||
pub model: Mat4,
|
||||
pub view: Mat4,
|
||||
pub proj: Mat4,
|
||||
pub model_color: Vec3,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue