nn::gr::CTR::Shadow Class

Syntax

class Shadow

Description

Class for configuring shadow settings.

Member Variables

isPerspective Enables/disables perspective projection for generating texture coordinates for shadow texture lookups. The type is bool. The default is true. Corresponds to the dmp_Texture[0].isPerspective uniform.
zBias Scale of the evaluation value for the depth value derivative in the light source coordinate screen space. Type is f32. Specify a value greater than 0.0. There is no default value, but this is initialized to 1.0. Corresponds to the dmp_Texture[0].shadowZBias uniform.
penumbraScale Scale applied when calculating hard shadows from penumbrae. Type is f32. The default is 0.0f. Corresponds to the dmp_FragOperation.penumbraScale uniform.
penumbraBias Bias applied when calculating hard shadows from penumbrae. Type is f32. The default is 1.0.0f. Corresponds to the dmp_FragOperation.penumbraBias uniform.

Member Functions

Shadow Sets the initial value for each setting.
MakeCommand Generates a command for configuring shadow settings based on information already set.
MakeTextureCommand Generates a command for configuring the shadow texture based on information already set.
MakeAttenuationCommand Generates a command for setting shadow attenuation based on information already set.

Revision History

2010/10/25
Initial version.

CONFIDENTIAL