提交 362afab2 编写于 作者: M Mr.doob

CanvasRenderer now behaves like WebGLRenderer when dealing with texture.needUpdate.

上级 dac392c5
......@@ -875,7 +875,7 @@ THREE.CanvasRenderer = function ( parameters ) {
if ( texture instanceof THREE.DataTexture || texture.image === undefined || texture.image.width == 0 ) return;
if ( texture.needsUpdate === true || _patterns[ texture.id ] === undefined ) {
if ( texture.needsUpdate === true ) {
var repeatX = texture.wrapS == THREE.RepeatWrapping;
var repeatY = texture.wrapT == THREE.RepeatWrapping;
......@@ -894,7 +894,9 @@ THREE.CanvasRenderer = function ( parameters ) {
}
setFillStyle( _patterns[ texture.id ] );
_patterns[ texture.id ] === undefined
? setFillStyle( 'rgba(0,0,0,1)' )
: setFillStyle( _patterns[ texture.id ] );
// http://extremelysatisfactorytotalitarianism.com/blog/?p=2120
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册