提交 8f0ceef1 编写于 作者: M Mr.doob

Renamed Channels to Layers.

上级 06a9080d
......@@ -2,15 +2,15 @@
* @author mrdoob / http://mrdoob.com/
*/
THREE.Channels = function () {
THREE.Layers = function () {
this.mask = 1;
};
THREE.Channels.prototype = {
THREE.Layers.prototype = {
constructor: THREE.Channels,
constructor: THREE.Layers,
set: function ( channel ) {
......
......@@ -16,7 +16,6 @@ THREE.Object3D = function () {
this.type = 'Object3D';
this.parent = null;
this.channels = new THREE.Channels();
this.children = [];
this.up = THREE.Object3D.DefaultUp.clone();
......@@ -74,6 +73,7 @@ THREE.Object3D = function () {
this.matrixAutoUpdate = THREE.Object3D.DefaultMatrixAutoUpdate;
this.matrixWorldNeedsUpdate = false;
this.layers = new THREE.Layers();
this.visible = true;
this.castShadow = false;
......
......@@ -1240,7 +1240,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( object.visible === false ) return;
if ( ( object.channels.mask & camera.channels.mask ) !== 0 ) {
if ( ( object.layers.mask & camera.layers.mask ) !== 0 ) {
if ( object instanceof THREE.Light ) {
......
......@@ -18,9 +18,9 @@
"src/math/Math.js",
"src/math/Spline.js",
"src/math/Triangle.js",
"src/core/Channels.js",
"src/core/Clock.js",
"src/core/EventDispatcher.js",
"src/core/Layers.js",
"src/core/Raycaster.js",
"src/core/Object3D.js",
"src/core/Face3.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册