Disable shadowmapping on WebGL

This commit is contained in:
Lauri Räsänen 2023-11-05 02:27:38 +02:00
parent 2616b2f5c9
commit ccaf9261cc
7 changed files with 67 additions and 45 deletions

View file

@ -17,14 +17,14 @@ struct Light {
var<uniform> light: Light;
// Needs to be 16 bytes in WebGL
struct LightMatrixIndex {
value: u32,
_padding: u32,
struct GlobalUniforms {
light_matrix_index: u32,
use_shadowmaps: u32,
_padding1: u32,
_padding2: u32,
}
@group(1) @binding(1)
var<uniform> light_matrix_index: LightMatrixIndex;
var<uniform> global_uniforms: GlobalUniforms;
struct VertexInput {
@location(0) position: vec3<f32>,