shadowing is back, need to figure out how I want to handle these direcitonal lights....
This commit is contained in:
@@ -74,8 +74,8 @@ impl RenderState {
|
||||
const MAX_LIGHTS: usize = 10;
|
||||
const SHADOW_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float;
|
||||
const SHADOW_SIZE: wgpu::Extent3d = wgpu::Extent3d {
|
||||
width: 512,
|
||||
height: 512,
|
||||
width: 1024,
|
||||
height: 1024,
|
||||
depth: Self::MAX_LIGHTS as u32,
|
||||
};
|
||||
const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float;
|
||||
@@ -196,10 +196,10 @@ impl RenderState {
|
||||
b: 0.5,
|
||||
a: 1.0,
|
||||
},
|
||||
fov: 45.0,
|
||||
fov: 90.0,
|
||||
depth: RangeCopy {
|
||||
start: 1.0,
|
||||
end: 20.0,
|
||||
end: 200.0,
|
||||
},
|
||||
target_view: target.clone(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user