We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670f3f0 commit 77ce205Copy full SHA for 77ce205
crates/bevy_pbr/src/render/light.rs
@@ -216,7 +216,12 @@ pub struct GpuLights {
216
217
// NOTE: this must be kept in sync with the same constants in pbr.frag
218
pub const MAX_UNIFORM_BUFFER_POINT_LIGHTS: usize = 256;
219
+
220
+#[cfg(feature = "webgl")] //NOTE: This fixes shader chrash with running Adreno GPU chipsets
221
+pub const MAX_DIRECTIONAL_LIGHTS: usize = 1;
222
+#[cfg(not(feature = "webgl"))]
223
pub const MAX_DIRECTIONAL_LIGHTS: usize = 10;
224
225
#[cfg(not(feature = "webgl"))]
226
pub const MAX_CASCADES_PER_LIGHT: usize = 4;
227
#[cfg(feature = "webgl")]
0 commit comments