import React from "react"; import { BaseProps } from "../../../types/baseProps"; export declare const NAME = "webGLRenderer"; export interface WebGLRendererProps extends BaseProps { width: number; height: number; /** * 是否执行抗锯齿。默认为false */ antialias?: boolean; /** * canvas是否包含alpha (透明度)。默认为 false */ alpha?: boolean; /** * 绘图缓存是否有一个至少6位的深度缓存(depth buffer )。 默认是true. */ depth?: boolean; clearColor?: number; pixelRatio?: number; toneMappingExposure?: number; toneMapping?: number; autoClear?: boolean; gammaOutput?: boolean; gammaInput?: boolean; animate?: Function; } /** * 渲染器 */ export declare const WebGLRenderer: React.ComponentType;