diff --git a/src/scene/shader-lib/wgsl/chunks/common/frag/pick.js b/src/scene/shader-lib/wgsl/chunks/common/frag/pick.js index 5d71ebedc1b..219e3ed245b 100644 --- a/src/scene/shader-lib/wgsl/chunks/common/frag/pick.js +++ b/src/scene/shader-lib/wgsl/chunks/common/frag/pick.js @@ -16,8 +16,10 @@ fn encodePickOutput(id: u32) -> vec4f { #ifdef DEPTH_PICK_PASS #include "floatAsUintPS" - uniform camera_params: vec4f; // x: 1/far, y: far, z: near, w: isOrtho - + #ifndef CAMERAPLANES + #define CAMERAPLANES + uniform camera_params: vec4f; // x: 1/far, y: far, z: near, w: isOrtho + #endif fn getPickDepth() -> vec4f { var linearDepth: f32; if (uniform.camera_params.w > 0.5) {