Variable iMaterialCommonsConst

iMaterialCommons: {
    clone: (superClone: () => this) => () => this;
    customProgramCacheKey: (this: IMaterial) => string;
    customProgramCacheKeyOverride: (
        superCustomPropertyCacheKey: () => string,
    ) => () => string;
    dispatchEvent: (
        superDispatchEvent: (event: Event & { [a: string]: any }) => void,
    ) => (
        event: Event & {
            bubbleToObject?: boolean;
            bubbleToParent?: boolean;
            material?: IMaterial;
            oldTexture?: ITexture;
            texture?: ITexture;
            type: IMaterialEventTypes;
            uiChangeEvent?: ChangeEvent;
        } & { [a: string]: any },
    ) => void;
    dispose: (superDispose: () => void) => (force?: boolean) => void;
    onAfterRender: (
        renderer: WebGLRenderer,
        scene: Scene,
        camera: Camera,
        geometry: BufferGeometry,
        object: Object3D,
    ) => void;
    onAfterRenderOverride: (
        superOnAfterRender: (
            renderer: WebGLRenderer,
            scene: Scene,
            camera: Camera,
            geometry: BufferGeometry,
            object: Object3D,
        ) => void,
    ) => (
        renderer: WebGLRenderer,
        scene: Scene,
        camera: Camera,
        geometry: BufferGeometry,
        object: Object3D,
    ) => void;
    onBeforeCompile: (
        this: IMaterial,
        shader: Shader,
        renderer: WebGLRenderer,
    ) => void;
    onBeforeCompileOverride: (
        superOnBeforeCompile: (shader: Shader, renderer: WebGLRenderer) => void,
    ) => (shader: Shader, renderer: WebGLRenderer) => void;
    onBeforeRender: (
        renderer: WebGLRenderer,
        scene: Scene,
        camera: Camera,
        geometry: BufferGeometry,
        object: Object3D,
    ) => void;
    onBeforeRenderOverride: (
        superOnBeforeRender: (
            renderer: WebGLRenderer,
            scene: Scene,
            camera: Camera,
            geometry: BufferGeometry,
            object: Object3D,
        ) => void,
    ) => (
        renderer: WebGLRenderer,
        scene: Scene,
        camera: Camera,
        geometry: BufferGeometry,
        object: Object3D,
    ) => void;
    registerMaterialExtensions: (
        this: IMaterial,
        customMaterialExtensions: MaterialExtension[],
    ) => void;
    setDirty: (this: IMaterial, options?: IMaterialSetDirtyOptions) => void;
    setValues: (
        superSetValues: (values: MaterialParameters) => void,
    ) => (
        parameters: Material | MaterialParameters & { type?: string },
        allowInvalidType?: boolean,
        clearCurrentUserData?: boolean,
    ) => this;
    threeMaterialPropList: {
        alphaTest: number;
        alphaToCoverage: boolean;
        blendDst: 205;
        blendDstAlpha: null;
        blendEquation: 100;
        blendEquationAlpha: null;
        blending: 1;
        blendSrc: 204;
        blendSrcAlpha: null;
        clipIntersection: boolean;
        clippingPlanes: null;
        clipShadows: boolean;
        colorWrite: boolean;
        depthFunc: 3;
        depthTest: boolean;
        depthWrite: boolean;
        dithering: boolean;
        forceSinglePass: boolean;
        name: string;
        opacity: number;
        polygonOffset: boolean;
        polygonOffsetFactor: number;
        polygonOffsetUnits: number;
        precision: null;
        premultipliedAlpha: boolean;
        shadowSide: null;
        side: 0;
        stencilFail: 7680;
        stencilFunc: 519;
        stencilFuncMask: number;
        stencilRef: number;
        stencilWrite: boolean;
        stencilWriteMask: number;
        stencilZFail: 7680;
        stencilZPass: 7680;
        toneMapped: boolean;
        transparent: boolean;
        userData: {};
        vertexColors: boolean;
        visible: boolean;
    };
    unregisterMaterialExtensions: (
        this: IMaterial,
        customMaterialExtensions: MaterialExtension[],
    ) => void;
    upgradeMaterial: (this: IMaterial) => IMaterial;
} = ...

Type declaration

  • Readonlyclone: (superClone: () => this) => () => this
  • ReadonlycustomProgramCacheKey: (this: IMaterial) => string
  • ReadonlycustomProgramCacheKeyOverride: (superCustomPropertyCacheKey: () => string) => () => string
  • ReadonlydispatchEvent: (
        superDispatchEvent: (event: Event & { [a: string]: any }) => void,
    ) => (
        event: Event & {
            bubbleToObject?: boolean;
            bubbleToParent?: boolean;
            material?: IMaterial;
            oldTexture?: ITexture;
            texture?: ITexture;
            type: IMaterialEventTypes;
            uiChangeEvent?: ChangeEvent;
        } & { [a: string]: any },
    ) => void
  • Readonlydispose: (superDispose: () => void) => (force?: boolean) => void
  • ReadonlyonAfterRender: (
        renderer: WebGLRenderer,
        scene: Scene,
        camera: Camera,
        geometry: BufferGeometry,
        object: Object3D,
    ) => void
  • ReadonlyonAfterRenderOverride: (
        superOnAfterRender: (
            renderer: WebGLRenderer,
            scene: Scene,
            camera: Camera,
            geometry: BufferGeometry,
            object: Object3D,
        ) => void,
    ) => (
        renderer: WebGLRenderer,
        scene: Scene,
        camera: Camera,
        geometry: BufferGeometry,
        object: Object3D,
    ) => void
  • ReadonlyonBeforeCompile: (this: IMaterial, shader: Shader, renderer: WebGLRenderer) => void
  • ReadonlyonBeforeCompileOverride: (
        superOnBeforeCompile: (shader: Shader, renderer: WebGLRenderer) => void,
    ) => (shader: Shader, renderer: WebGLRenderer) => void
  • ReadonlyonBeforeRender: (
        renderer: WebGLRenderer,
        scene: Scene,
        camera: Camera,
        geometry: BufferGeometry,
        object: Object3D,
    ) => void
  • ReadonlyonBeforeRenderOverride: (
        superOnBeforeRender: (
            renderer: WebGLRenderer,
            scene: Scene,
            camera: Camera,
            geometry: BufferGeometry,
            object: Object3D,
        ) => void,
    ) => (
        renderer: WebGLRenderer,
        scene: Scene,
        camera: Camera,
        geometry: BufferGeometry,
        object: Object3D,
    ) => void
  • ReadonlyregisterMaterialExtensions: (this: IMaterial, customMaterialExtensions: MaterialExtension[]) => void
  • ReadonlysetDirty: (this: IMaterial, options?: IMaterialSetDirtyOptions) => void
  • ReadonlysetValues: (
        superSetValues: (values: MaterialParameters) => void,
    ) => (
        parameters: Material | MaterialParameters & { type?: string },
        allowInvalidType?: boolean,
        clearCurrentUserData?: boolean,
    ) => this
  • threeMaterialPropList: {
        alphaTest: number;
        alphaToCoverage: boolean;
        blendDst: 205;
        blendDstAlpha: null;
        blendEquation: 100;
        blendEquationAlpha: null;
        blending: 1;
        blendSrc: 204;
        blendSrcAlpha: null;
        clipIntersection: boolean;
        clippingPlanes: null;
        clipShadows: boolean;
        colorWrite: boolean;
        depthFunc: 3;
        depthTest: boolean;
        depthWrite: boolean;
        dithering: boolean;
        forceSinglePass: boolean;
        name: string;
        opacity: number;
        polygonOffset: boolean;
        polygonOffsetFactor: number;
        polygonOffsetUnits: number;
        precision: null;
        premultipliedAlpha: boolean;
        shadowSide: null;
        side: 0;
        stencilFail: 7680;
        stencilFunc: 519;
        stencilFuncMask: number;
        stencilRef: number;
        stencilWrite: boolean;
        stencilWriteMask: number;
        stencilZFail: 7680;
        stencilZPass: 7680;
        toneMapped: boolean;
        transparent: boolean;
        userData: {};
        vertexColors: boolean;
        visible: boolean;
    }
  • ReadonlyunregisterMaterialExtensions: (this: IMaterial, customMaterialExtensions: MaterialExtension[]) => void
  • ReadonlyupgradeMaterial: (this: IMaterial) => IMaterial