ThreePipe
    Preparing search index...

    Function matDefineBool

    • Same as matDefine but for boolean values. It sets the value to '1' or '0'/undefined.

      Parameters

      • Optionalkey: string | symbol

        define name

      • OptionalcustomDefines: any

        object for setting define value (like ShaderMaterial.defines), otherwise this.material.defines is taken

      • thisMat: boolean = false

        access this.defines instead of this.material.defines

      • OptionalonChange: (...args: any[]) => any

        function to call when the value changes. If a string, it is used as a property name in this and called. If a function, it is called. The function is called with the following parameters: key, newVal

      • deleteOnFalse: boolean = false

        sets to undefined instead of '0' when false. Note deleteOnFalse doesn't work with tweakpane ui because the value will be undefined.

      Returns PropertyDecorator