more hacking

This commit is contained in:
2021-01-27 18:44:10 -08:00
parent 9ebaece426
commit 36945597c5
4 changed files with 91 additions and 76 deletions

View File

@@ -3,11 +3,10 @@ use bytemuck::{Zeroable, Pod};
use crate::OPENGL_TO_WGPU_MATRIX;
pub struct Light {
pos: cgmath::Point3<f32>,
color: wgpu::Color,
fov: f32,
depth: Range<f32>,
target_view: wgpu::TextureView,
pub(crate) pos: cgmath::Point3<f32>,
pub(crate) color: wgpu::Color,
pub(crate) fov: f32,
pub(crate) depth: Range<f32>,
}
#[repr(C)]