WIP shadowmapping
This commit is contained in:
parent
43b4eaf5ab
commit
c5e32a830d
7 changed files with 145 additions and 91 deletions
|
@ -13,5 +13,5 @@ fn vs_main(
|
|||
);
|
||||
|
||||
let world_position = model_matrix * vec4<f32>(model.position, 1.0);
|
||||
return camera.proj * camera.view * world_position;
|
||||
return light.matrices[light.active_matrix] * world_position;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue