소스 검색

depthMask, depthTest and premultipliedAlpha

sunag 8 년 전
부모
커밋
5500d56a0d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      examples/js/loaders/sea3d/SEA3D.js

+ 3 - 1
examples/js/loaders/sea3d/SEA3D.js

@@ -2130,9 +2130,11 @@ SEA3D.Material = function ( name, data, sea3d ) {
 	if ( this.attrib & 128 )
 		this.animations = data.readAnimationList( sea3d );
 
-	this.depthMask = ( this.attrib & 256 ) == 0;
+	this.depthWrite = ( this.attrib & 256 ) == 0;
 	this.depthTest = ( this.attrib & 512 ) == 0;
 
+	this.premultipliedAlpha = ( this.attrib & 1024 ) != 0;
+
 	var count = data.readUByte();
 
 	for ( var i = 0; i < count; ++ i ) {