diff --git a/types/three/examples/jsm/renderers/common/Renderer.d.ts b/types/three/examples/jsm/renderers/common/Renderer.d.ts index 1bc6cb593..ef4ab9660 100644 --- a/types/three/examples/jsm/renderers/common/Renderer.d.ts +++ b/types/three/examples/jsm/renderers/common/Renderer.d.ts @@ -99,6 +99,8 @@ export default class Renderer { get coordinateSystem(): CoordinateSystem; + compileAsync(scene: Scene, camera: Camera, targetScene?: Scene | null): Promise; + renderAsync(scene: Scene, camera: Camera): Promise; setAnimationLoop(callback: ((time: DOMHighResTimeStamp) => void) | null): Promise; @@ -259,6 +261,11 @@ export default class Renderer { get compute(): (computeNodes: ComputeNode | ComputeNode[]) => Promise; + /** + * @deprecated THREE.Renderer: compile() is deprecated and will be removed in r170, use compileAsync instead. + */ + get compile(): (scene: Scene, camera: Camera, targetScene?: Scene | null) => Promise; + get render(): (scene: Scene, camera: Camera) => Promise; get clear(): (color?: boolean, depth?: boolean, stencil?: boolean) => Promise;