Class: Layers

Layers(maskopt)

new Layers(maskopt)

Layer flags. (Visible Filter)

Orignal Source: https://github.com/mrdoob/three.js/blob/master/src/core/Layers.js
by mrdoob / http://mrdoob.com/
LICENSE: MIT

Note: This is not the component - it's integer in Obj3.layers and occluding.

Post effect system like PathEffect use this as it's pass-layer flags. ChannelFilter also use this for channel filtering.

Parameters:
Name Type Attributes Description
mask int32 <optional>

intitial flage, default 0.

Author:
  • odys-z@github.com
Source:

Members

mask

layer mask value. Default enable none. THREE use '1' stands for 'all' - channel 0.

Properties:
Name Type Description
mask int32

mask flag

Source:

Methods

disable()

Source:

disableAll()

Source:

enable()

Source:

enableAll()

Source:

occlude(occludingMask)

Parameters:
Name Type Description
occludingMask int

channel flags to occlude

Source:

set()

Set channel value (visible), channel 0 for all visible.

Source:

set3(l3)

Set this mask to THREE.Layers' mask

Parameters:
Name Type Description
l3 THREE.Layers | Layers

target

Source:

test()

Also enable channels of layers.

Source:

test()

Source:

toggle()

Source:

visible()

Source: