B.Render.DepthState()

Represent a depth rendering state.

To get the object use pass.state(B.Render.State.DEPTH).

METHODS:

pass()

Returns linked pass.

RETURNS:

default()

Resets to default values.

// equivalent to
state.test(B.Render.CmpFunc.LESS_EQUAL);
state.write(true);

RETURNS:

test(func)

Sets depth test compare function.

PARAMETERS:

{B.Render.CmpFunc | false} func

pass false to disable depth test

RETURNS:

test()

Returns depth test compare function.

RETURNS:

{false | B.Render.CmpFunc}

false if depth test is disabled

write(mask)

Sets depth write mask.

PARAMETERS:

{boolean} mask

RETURNS:

write()

Gets depth write mask.

RETURNS:

{boolean}

METHODS: