Function setMeshReflector

  • 设置一个mesh可镜面反射

    Parameters

    • mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
    • Optional options: MeshReflectorOptions
    • Optional app: App

    Returns {
        dispose: (() => void);
        material: CustomShaderMaterial<MaterialConstructor>;
        mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>;
        reflectMaterial: MeshReflectorMaterial2;
        setColor: ((color) => void);
        setIntensity: ((intensity) => void);
        setSpeed: ((speed) => void);
    }

    • dispose: (() => void)
        • (): void
        • Returns void

    • material: CustomShaderMaterial<MaterialConstructor>
    • mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
    • reflectMaterial: MeshReflectorMaterial2
    • setColor: ((color) => void)
        • (color): void
        • Parameters

          • color: ColorRepresentation

          Returns void

    • setIntensity: ((intensity) => void)
        • (intensity): void
        • Parameters

          • intensity: number

          Returns void

    • setSpeed: ((speed) => void)
        • (speed): void
        • Parameters

          • speed: number

          Returns void