Interface IWebGLRendererModule

interface IWebGLRendererModule {
    commonUniforms: {
        resolution: {
            value: Vector2;
        };
        time: {
            value: Vector4;
        };
    };
    getScreenshot: ((params?) => Promise<Blob>);
    isMapMode: boolean;
    renderer: WebGLRenderer;
}

Implemented by

Properties

commonUniforms: {
    resolution: {
        value: Vector2;
    };
    time: {
        value: Vector4;
    };
}

Type declaration

  • resolution: {
        value: Vector2;
    }
    • value: Vector2
  • time: {
        value: Vector4;
    }
    • value: Vector4
getScreenshot: ((params?) => Promise<Blob>)

获取渲染截图

Type declaration

    • (params?): Promise<Blob>
    • 获取渲染截图

      Parameters

      Returns Promise<Blob>

isMapMode: boolean

地图模式

renderer: WebGLRenderer

渲染器