提交 5099a1be 编写于 作者: M Mr.doob

CanvasRenderer: Handle data textures.

上级 f330186c
......@@ -827,6 +827,15 @@ THREE.CanvasRenderer = function ( parameters ) {
var image = texture.image;
if ( image.complete === false ) {
return {
canvas: undefined,
version: 0
}
}
var canvas = document.createElement( 'canvas' );
canvas.width = image.width;
canvas.height = image.height;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册