<AngleSampler>

Description

Tag representing the attenuation of the spotlight cone. Includes <LookupTableSetContentReferenceCtr> representing the reference to the lookup table in the child hierarchy.

Attributes

TypeAttributesDescription
LightingLookupTableInputInput Input value for accessing lookup table.
IsAbs Flag for making an absolute value of the input value for accessing lookup table.
LightingLookupTableScaleScale Scale value by which to multiply the value output from the lookup table.

LightingLookupTableInput Enumerated Type

ValueDescription
CosNormalHalfThe cosine of the angle between the normal and the half vector.
CosViewHalfThe cosine of the angle between the view vector and the half vector.
CosNormalViewThe cosine of the angle between the normal and the view vector.
CosLightNormalThe cosine of the angle between the light vector and the normal.
CosLightSpotThe cosine of the angle between the light vector and the spot direction vector.
CosPhiThe cosine of the angle between the half vector's tangent projection vector and the tangent vector.

LightingLookupTableScale Enumerated Type

ValueDescription
Quarter0.25x scale.
Half0.5x scale.
One1x scale.
Two2x scale.
Four4x scale.
Eight8x scale.

Example Output

<AngleSampler IsAbs="true" Input="CosLightSpot" Scale="One">
<ReferenceLookupTableCtr TableName="Spot">
<LookupTableSetContentReferenceCtr>LookupTableSetContents["*"]</LookupTableSetContentReferenceCtr>
</ReferenceLookupTableCtr>
</AngleSampler>

CONFIDENTIAL