fix ambient light

This commit is contained in:
Lauri Räsänen 2023-01-28 14:03:14 +02:00
parent afcfee789b
commit 7152d9d274
2 changed files with 6 additions and 5 deletions

View file

@ -120,7 +120,7 @@ impl State {
let camera_controller = CameraController::new(400.0, 2.0);
let light_uniform = LightUniform::new([100.0, 60.0, 0.0], [1.0, 1.0, 1.0, 100000.0]);
let light_uniform = LightUniform::new([100.0, 60.0, 0.0], [1.0, 1.0, 1.0, 200000.0]);
// We'll want to update our lights position, so we use COPY_DST
let light_buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor {