@@ -522,16 +522,6 @@ const _tempColor = new Color();
522522 * backfaces.
523523 * @property {boolean } shadowCatcher When enabled, the material will output accumulated directional
524524 * shadow value in linear space as the color.
525- * @property {UpdateShaderCallback } onUpdateShader A custom function that will be called after all
526- * shader generator properties are collected and before shader code is generated. This function
527- * will receive an object with shader generator settings (based on current material and scene
528- * properties), that you can change and then return. Returned value will be used instead. This is
529- * mostly useful when rendering the same set of objects, but with different shader variations based
530- * on the same material. For example, you may wish to render a depth or normal pass using textures
531- * assigned to the material, a reflection pass with simpler shaders and so on. These properties are
532- * split into two sections, generic standard material options and lit options. Properties of the
533- * standard material options are {@link StandardMaterialOptions} and the options for the lit options
534- * are {@link LitShaderOptions}.
535525 *
536526 * @category Graphics
537527 */
@@ -542,6 +532,22 @@ class StandardMaterial extends Material {
542532
543533 userAttributes = new Map ( ) ;
544534
535+ /**
536+ * A custom function that will be called after all shader generator properties are collected
537+ * and before shader code is generated. This function will receive an object with shader
538+ * generator settings (based on current material and scene properties), that you can change and
539+ * then return. Returned value will be used instead. This is mostly useful when rendering the
540+ * same set of objects, but with different shader variations based on the same material. For
541+ * example, you may wish to render a depth or normal pass using textures assigned to the
542+ * material, a reflection pass with simpler shaders and so on. These properties are split into
543+ * two sections, generic standard material options and lit options. Properties of the standard
544+ * material options are {@link StandardMaterialOptions} and the options for the lit options are
545+ * {@link LitShaderOptions}.
546+ *
547+ * @type {UpdateShaderCallback|undefined }
548+ */
549+ onUpdateShader ;
550+
545551 /**
546552 * Create a new StandardMaterial instance.
547553 *
0 commit comments