Function setMeshReflector
- setMeshReflector(mesh, options?, app?): {
dispose: (() => void);
material: CustomShaderMaterial<MaterialConstructor>;
mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>;
reflectMaterial: MeshReflectorMaterial2;
setColor: ((color) => void);
setIntensity: ((intensity) => void);
setSpeed: ((speed) => void);
} Parameters
mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
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)
mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
reflectMaterial: MeshReflectorMaterial2
setColor: ((color) => void)
- (color): void
Parameters
color: ColorRepresentation
Returns void
setIntensity: ((intensity) => void)
- (intensity): void
Returns void
setSpeed: ((speed) => void)
- (speed): void
Returns void
设置一个mesh可镜面反射