nn::gr::CTR::FragmentLight Class

Syntax

class FragmentLight

Description

Class for setting fragment lighting.

Classes

nn::gr::CTR::FragmentLight::LutConfig Class for adjusting lookup table values.
nn::gr::CTR::FragmentLight::Source Class for making settings per light source.

Member Constants

S LIGHT_SOURCE_MAX The maximum number of light sources is 8.

Member Variables

globalAmbientR Red component setting for global ambient. Type is u8. Values in the range [0.f, 1.f] are mapped to [0, 255] and then set.
globalAmbientG Green component setting for global ambient. Type is u8. Values in the range [0.f, 1.f] are mapped to [0, 255] and then set.
globalAmbientB Blue component setting for global ambient. Type is u8. Values in the range [0.f, 1.f] are mapped to [0, 255] and then set.
source Stores light source settings. Type is nn::gr::CTR::FragmentLight::Source.
isEnable Sets enable/disable for light sources. Type is bool[]. Upper limit value of the array is LIGHT_SOURCE_MAX.
isEnableSpot Sets whether spotlights are enabled. Type is bool[]. Upper limit value of the array is LIGHT_SOURCE_MAX.
isEnableDistAttn Sets whether distance attentuation is enabled. Type is bool[]. Upper limit value of the array is LIGHT_SOURCE_MAX.
isShadowed Sets shadow adjustment elements. Type is bool[]. Upper limit value of the array is LIGHT_SOURCE_MAX.
layerConfig Sets layer config. Type is PicaDataFragLightEnvLayerConfig.
fresnelSelector Sets where fresnel is applied. Type is PicaDataFragLightEnvFresnel.
shadowSelector Sets textures whose shadow adjustment element is to be sampled. Type is PicaDataFragLightTexture.
bumpMode Sets bump mapping. Type is PicaDataFragLightEnvBump.
bumpSelector Sets textures to be used as normal maps and tangent maps. Type is PicaDataFragLightTexture.
isEnableShadowPrimary Sets whether shadow attenuation is to be applied to the primary color. Type is bool.
isEnableShadowSecondary Sets whether shadow attenuation is to be applied to the secondary color. Type is bool.
isEnableShadowAlpha Sets whether shadow attenuation is to be applied to the alpha component. Type is bool.
isInvertShadow Sets whether shadow attenuation is to be inverted. Type is bool.
isEnableBumpRenorm Sets whether the z-component of the normal map is to be regenerated. Type is bool.
isEnableClampHighLights Sets whether the specular color is to be clamped to 0 when L.n is less than 0. Type is bool.
isEnableLutD0 If true, the lookup table value or 1 is set for Distribution 0. Type is bool. Initial value is false.
isEnableLutD1 If true, the lookup table value or 1 is set for Distribution 1. Type is bool. Initial value is false.
isEnableLutRefl If true, the lookup table value or 1 is set for Reflection. Type is bool. Initial value is true.
lutConfigD0 Sets lookup table Distribution 0. Type is nn::gr:CTR::FragmentLight::LutConfig.
lutConfigD1 Sets lookup table Distribution 1. Type is nn::gr:CTR::FragmentLight::LutConfig.
lutConfigSP Sets lookup table Specular. Type is nn::gr:CTR::FragmentLight::LutConfig.
lutConfigFR Sets lookup table FragmentLight. Type is nn::gr:CTR::FragmentLight::LutConfig.
lutConfigRB Sets lookup table RB. Type is nn::gr:CTR::FragmentLight::LutConfig.
lutConfigRG Sets lookup table RG. Type is nn::gr:CTR::FragmentLight::LutConfig.
lutConfigRR Sets lookup table RR. Type is nn::gr:CTR::FragmentLight::LutConfig.

Member Functions

FragmentLight Sets the initial value for each setting.
MakeLightSourceCommand Generates a command for setting each light source for fragment lighting based on information already set.
MakeLightEnvCommand Generates a command for setting the light environment for fragment lighting based on information already set.
MakeAllCommand Generates a command for setting fragment lighting based on information already set.

Revision History

2010/09/15
Initial version.

CONFIDENTIAL