Use cube for light debug mesh instead of entirety of Sponza...
This commit is contained in:
parent
2ddc863ca5
commit
450fc7a518
4 changed files with 16 additions and 5 deletions
BIN
res/models/Cube.glb
Normal file
BIN
res/models/Cube.glb
Normal file
Binary file not shown.
|
@ -28,7 +28,7 @@ struct VertexOutput {
|
|||
fn vs_main(
|
||||
model: VertexInput,
|
||||
) -> VertexOutput {
|
||||
let scale = 0.01;
|
||||
let scale = 10.0;
|
||||
var out: VertexOutput;
|
||||
out.clip_position = camera.proj * camera.view * vec4<f32>(model.position * scale + light.position, 1.0);
|
||||
out.color = light.color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue