comment on updating uniforms

This commit is contained in:
Quaternions 2023-09-05 18:51:53 -07:00
parent abd002e3bf
commit 988f204358

View File

@ -652,6 +652,7 @@ impl strafe_client::framework::Example for Skybox {
device, device,
) )
.copy_from_slice(bytemuck::cast_slice(&camera_uniforms)); .copy_from_slice(bytemuck::cast_slice(&camera_uniforms));
//This code only needs to run when the uniforms change
for model in self.models.iter() { for model in self.models.iter() {
let model_uniforms = get_transform_uniform_data(&model.transform); let model_uniforms = get_transform_uniform_data(&model.transform);
self.staging_belt self.staging_belt