From 5e836420efd2b1a84f8e2b5d8767aea675eb3405 Mon Sep 17 00:00:00 2001 From: Elabajaba Date: Sun, 29 Jan 2023 14:33:51 -0500 Subject: [PATCH] fog shader consts --- crates/bevy_pbr/src/render/mesh_view_types.wgsl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/bevy_pbr/src/render/mesh_view_types.wgsl b/crates/bevy_pbr/src/render/mesh_view_types.wgsl index f7ed052020028..c732cabc9453c 100644 --- a/crates/bevy_pbr/src/render/mesh_view_types.wgsl +++ b/crates/bevy_pbr/src/render/mesh_view_types.wgsl @@ -89,11 +89,11 @@ struct Fog { } // Important: These must be kept in sync with `fog.rs` -let FOG_MODE_OFF: u32 = 0u; -let FOG_MODE_LINEAR: u32 = 1u; -let FOG_MODE_EXPONENTIAL: u32 = 2u; -let FOG_MODE_EXPONENTIAL_SQUARED: u32 = 3u; -let FOG_MODE_ATMOSPHERIC: u32 = 4u; +const FOG_MODE_OFF: u32 = 0u; +const FOG_MODE_LINEAR: u32 = 1u; +const FOG_MODE_EXPONENTIAL: u32 = 2u; +const FOG_MODE_EXPONENTIAL_SQUARED: u32 = 3u; +const FOG_MODE_ATMOSPHERIC: u32 = 4u; #if AVAILABLE_STORAGE_BUFFER_BINDINGS >= 3 struct PointLights {