IrrAddNodeShadow

section index

## NAME

IrrAddNodeShadow - add a stencil shadow to an node

## SYNOPSIS

*shadowNode.l = IrrAddNodeShadow(*node.l, [ bZfailmethod.l, infinity.f ])

## INPUTS

*node.l | - | pointer to a Scene Node
bZfailmethod.l | - | if set to #True, the shadow will use the zfail method, if not, zpass is used
infinity.f | - | Value used by the shadow volume algorithm to scale the shadow volume.

## FUNCTION

Add a shadow volume scene node as child of this node and returns a pointer to it. The shadow can be rendered using the ZPass or the zfail method. ZPass is a little bit faster because the shadow volume creation is easier, but with this method there occur ugly looking artifacs when the camera is inside the shadow volume. These error do not occur with the ZFail method.

## EXAMPLE

       *shadowNode.l = IrrAddNodeShadow(*Node.l)

## RESULT

pointer to a scene node