nn::gr::CTR::RenderState::ShadowMap Classclass ShadowMap
Class for configuring shadow map settings. When shadow maps are enabled for the sharing of registers, you cannot use normal fragment operations and gas density information rendering at the same time.
isEnable
|
bool | Configures whether shadow maps are enabled or disabled. Type is bool. Always passes if disabled. Initial value is false (disabled). When shadow maps are enabled for the sharing of registers, you cannot use normal fragment operations and gas at the same time. |
|
|---|---|---|---|
isPerspective
|
bool | Enables or disables perspective projection for generating texture coordinates for shadow texture lookups. Type is bool. The default is true. Corresponds to the dmp_Texture[0].isPerspective uniform. |
|
zBias
|
f32 | The bias value to be subtracted from the distance to the light source. Type is f32. Specify a value greater than 0.0. There is no default value, but this is initialized to 0.0f. Corresponds to the dmp_Texture[0].shadowZBias uniform. |
|
zScale
|
f32 | Scale for the evaluation value of the depth value derivative in the light source coordinate screen space. The zScale setting is disabled. It only remains for reasons of compatibility. (The type is f32. The default is 1.0f. Corresponds to the dmp_Texture[0].shadowZScale uniform.) |
|
penumbraScale
|
f32 | Scale applied when calculating hard shadows from penumbrae. Type is f32. The default is 0.0f. Corresponds to the dmp_FragOperation.penumbraScale uniform. |
|
| penumbraBias | f32 | Bias applied when calculating hard shadows from penumbrae. Type is f32. The default is 1.0f. Corresponds to the dmp_FragOperation.penumbraBias uniform. |
ShadowMap
|
A constructor that sets the default value. | |
|---|---|---|
MakeCommand
|
Generates a command for shadow map settings based on information already set. | |
MakeTextureCommand
|
Generates a command for configuring the shadow map texture based on information already set. | |
MakeAttenuationCommand
|
Generates a command for setting shadow attenuation based on information already set. |
CONFIDENTIAL