LightDiffuse.3CgFX

Langue: en

Version: Cg Toolkit 3.0 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

LightDiffuse - 3D API light diffuse

USAGE

LightDiffuse[i] = float4(r, g, b, a)

VALID ENUMERANTS

r, g, b, a:

DESCRIPTION

Specify the diffuse intensity of the light. See the GL_DIFFUSE description on the OpenGL glLight manual page for details. See the Diffuse member of the D3DLIGHT9 argument to IDirect3DDevice9::SetLight method.

The standard reset callback sets the LightDiffuse[i] state to float4(1, 1, 1, 1) when i is 0 and float4(0, 0, 0, 1) otherwise.

OPENGL FUNCTIONALITY REQUIREMENTS

OpenGL 1.0

DIRECT3D FUNCTIONALITY REQUIREMENTS

DirectX 9

SEE ALSO

LightAmbient, LightAttenuation0, LightAttenuation1, LightAttenuation2, LightConstantAttenuation, LightDirection, LightEnable, LightFalloff, LightLinearAttenuation, LightModelAmbient, LightModelColorControl, LightModelLocalViewerEnable, LightModelTwoSideEnable, LightPhi, LightPosition, LightQuadraticAttenuation, LightRange, LightSpecular, LightSpotCutoff, LightSpotDirection, LightSpotExponent, LightTheta, LightType, LightingEnable