Pass light matrix as separate uniform, fix matrices
This commit is contained in:
parent
2676b841fe
commit
010e4dedeb
4 changed files with 81 additions and 41 deletions
|
@ -13,5 +13,5 @@ fn vs_main(
|
|||
);
|
||||
|
||||
let world_position = model_matrix * vec4<f32>(model.position, 1.0);
|
||||
return light.matrices[light.active_matrix] * world_position;
|
||||
return light.matrices[light_matrix_index] * world_position;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue