diff --git a/src/scene/constants.js b/src/scene/constants.js index 79195c6a60c..a7cc161bee9 100644 --- a/src/scene/constants.js +++ b/src/scene/constants.js @@ -771,12 +771,12 @@ export const SHADER_FORWARD = 0; export const SHADER_PREPASS = 1; +// shadow pass used by the shadow rendering code +export const SHADER_SHADOW = 2; + // shader pass used by the Picker class to render mesh ID export const SHADER_PICK = 3; -// shadow pass used by the shadow rendering code -export const SHADER_SHADOW = 4; - /** * Shader that performs forward rendering. * diff --git a/src/scene/shader-pass.js b/src/scene/shader-pass.js index 3d26135c6fd..93b29c86635 100644 --- a/src/scene/shader-pass.js +++ b/src/scene/shader-pass.js @@ -100,8 +100,8 @@ class ShaderPass { // add default passes in the required order, to match the constants add('forward', SHADER_FORWARD, { isForward: true }); add('prepass', SHADER_PREPASS); - add('pick', SHADER_PICK); add('shadow', SHADER_SHADOW); + add('pick', SHADER_PICK); } /**