提交 de79e86c 编写于 作者: Y Yi Xu

add offscreen canvas as possible type of canvas for WebGlRenderer

上级 c3d5c00a
......@@ -31,7 +31,7 @@ export interface WebGLRendererParameters {
/**
* A Canvas where the renderer draws its output.
*/
canvas?: HTMLCanvasElement;
canvas?: HTMLCanvasElement | OffscreenCanvas;
/**
* A WebGL Rendering Context.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册