Use cube for light debug mesh instead of entirety of Sponza...

This commit is contained in:
Lauri Räsänen 2023-01-29 15:12:41 +02:00
parent 2ddc863ca5
commit 450fc7a518
4 changed files with 16 additions and 5 deletions

BIN
res/models/Cube.glb Normal file

Binary file not shown.

View file

@ -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;