RayLight Struct Reference

#include <c4d_raytrace.h>

Public Attributes

RayLightNoiseln
 
RayLightShadowls
 
RayLightVisiblelv
 
BaseObjectlink
 
Bool calc_illum
 
Matrix64 m
 
Matrix64 m_inverse
 
Int32 type
 
Int32 stype
 
Int32 vtype
 
Int32 ntype
 
Int32 falloff
 
Float innerangle
 
Float outerangle
 
Float innerradius
 
Float outerradius
 
Float aspectratio
 
Bool arealight
 
Bool ambient
 
Bool nodiffuse
 
Bool nospecular
 
Bool nogi
 
Bool innercolor
 
Bool colfalloff
 
Bool negative
 
Float contrast
 
Float innerdist
 
Float outerdist
 
Vector color
 
Bool nearclip
 
Bool farclip
 
Float nearfrom
 
Float nearto
 
Float farfrom
 
Float farto
 
Vector lens_color
 
RayLightCausticslc
 
Bool separatepass
 
Float trn
 
Int32 multipass_index
 
ObjectRestriction lr
 
void * userdata
 
Bool onlyz
 
Vector arearadius
 
Int32 areashape
 
Int32 areasamples
 
Bool areaaddgrain
 
const Vectorarea_padr
 
Int32 area_pcnt
 
const RayPolygonarea_vadr
 
Int32 area_vcnt
 
BaseObjectarea_link
 
Matrixarea_matrix
 
Bool shadowcaster
 
Float area_falloffangle
 
Float area_infiniteangle
 
Bool area_showinrender
 
Bool area_showinreflection
 
Vector area_backcolor
 
Gradientgradient
 
Float gradient_multiplier
 
Float lens_imul
 
TexList * texadr
 
Int32 texcnt
 

Protected Member Functions

 RayLight ()
 

Constructor & Destructor Documentation

◆ RayLight()

RayLight ( )
protected

Member Data Documentation

◆ ln

The light noise structure. Always valid, not nullptr.

◆ ls

The shadow structure. Always valid, not nullptr.

◆ lv

The visible light structure. Always valid, not nullptr.

◆ link

BaseObject* link

The link to the 'real' light object.

◆ calc_illum

Bool calc_illum

true if the light source illuminates.

◆ m

The light matrix.

◆ m_inverse

Matrix64 m_inverse

The inverse light matrix.

◆ type

Int32 type

The type of light source: RaytraceLightTypes.

◆ stype

Int32 stype

The shadow type: RaytraceShadowTypes.

◆ vtype

Int32 vtype

The type of visible light: RaytraceVisibleLight.

◆ ntype

Int32 ntype

The type of noise for illumination/visible light: RaytraceLightNoise.

◆ falloff

Int32 falloff

The type of light falloff: RaytraceLightFalloff.

◆ innerangle

Float innerangle

The inner angle of light cone, only relevant if the light source is a spot.

◆ outerangle

Float outerangle

The outer angle of light cone, only relevant if the light source is a spot.

◆ innerradius

Float innerradius

The inner radius of light cylinder, only relevant if the light source is a parallel spot.

◆ outerradius

Float outerradius

The outer radius of light cylinder, only relevant if the light source is a parallel spot.

◆ aspectratio

Float aspectratio

The Y distortion, to get the resulting matrix system multiply by m.sqmat.v2.

◆ arealight

Bool arealight

true if the light source acts as arealight.

◆ ambient

Bool ambient

The light source illuminates ambient light.

◆ nodiffuse

Bool nodiffuse

The light source does not affect the diffuse component.

◆ nospecular

Bool nospecular

The light source does not affect the specular component.

◆ nogi

Bool nogi

The light source does not affect GI.

◆ innercolor

Bool innercolor

true if the inner color is used.

◆ colfalloff

Bool colfalloff

Edge color falloff.

◆ negative

Bool negative

true if the light source subtracts intensity.

◆ contrast

Float contrast

The light contrast.

◆ innerdist

Float innerdist

The inner distance, only important if falloff is set.

◆ outerdist

Float outerdist

The outer distance, only important if falloff is set.

◆ color

Vector color

The light color, only important if innercolor is set.

◆ nearclip

Bool nearclip

Near clipping.

◆ farclip

Bool farclip

Far clipping.

◆ nearfrom

Float nearfrom

Near clipping start.

◆ nearto

Float nearto

Near clipping end.

◆ farfrom

Float farfrom

Far clipping start.

◆ farto

Float farto

Far clipping end.

◆ lens_color

Vector lens_color

Color for the lens flares.

◆ lc

The caustics structure. Always valid, not nullptr.

◆ separatepass

Bool separatepass

true if render as separate multipass.

◆ trn

Float trn

Exp (-contrast).

◆ multipass_index

Int32 multipass_index

Index into multipass light field (or NOTOK).

◆ lr

Light restriction.

◆ userdata

void* userdata

Only to be used by plugin renderers.

◆ onlyz

Bool onlyz

Only Z.

◆ arearadius

Vector arearadius

Area radius.

◆ areashape

Int32 areashape

Area shape. (See olight.h, LIGHT_AREADETAILS_SHAPE.)

◆ areasamples

Int32 areasamples

Number of area samples.

◆ areaaddgrain

Bool areaaddgrain

true to add area grain.

◆ area_padr

const Vector* area_padr

Area points.

◆ area_pcnt

Int32 area_pcnt

Number of area points.

◆ area_vadr

const RayPolygon* area_vadr

Area polygons.

◆ area_vcnt

Int32 area_vcnt

Number of area polygons.

◆ area_link

BaseObject* area_link

Area link.

◆ area_matrix

Matrix* area_matrix

Area matrix.

◆ shadowcaster

Bool shadowcaster

Shadow caster.

◆ area_falloffangle

Float area_falloffangle

Area falloff angle.

◆ area_infiniteangle

Float area_infiniteangle

Infinite area angle.

◆ area_showinrender

Bool area_showinrender

Show area light in render.

◆ area_showinreflection

Bool area_showinreflection

Show area light in render.

◆ area_backcolor

Vector area_backcolor

Area light back color.

Since
R19

◆ gradient

Gradient* gradient

Color gradient.

◆ gradient_multiplier

Float gradient_multiplier

Gradient multiplier.

◆ lens_imul

Float lens_imul

Lens multiplier.

◆ texadr

TexList* texadr

Texture address. Can be nullptr, always check.

Note
It is not possible to access textures directly. Use VolumeData::GetTexData() instead.

◆ texcnt

Int32 texcnt

Texture count.