RayLight Struct Reference

#include <c4d_raytrace.h>

Public Attributes

RayLightNoise ln
RayLightShadow ls
RayLightVisible lv
BaseObject link
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
向量   color
Bool   nearclip
Bool   farclip
Float   nearfrom
Float   nearto
Float   farfrom
Float   farto
向量   lens_color
RayLightCaustics lc
Bool   separatepass
Float   trn
Int32   multipass_index
ObjectRestriction   lr
void *  userdata
Bool   onlyz
向量   arearadius
Int32   areashape
Int32   areasamples
Bool   areaaddgrain
const 向量 area_padr
Int32   area_pcnt
const RayPolygon area_vadr
Int32   area_vcnt
BaseObject area_link
矩阵 area_matrix
Bool   shadowcaster
Float   area_falloffangle
Float   area_infiniteangle
Bool   area_showinrender
Bool   area_showinreflection
向量   area_backcolor
渐变 gradient
Float   gradient_multiplier
Float   lens_imul
TexList *  texadr
Int32   texcnt

Protected Member Functions

  RayLight ()

构造函数 & 析构函数文档编制

◆  RayLight()

RayLight ( )
protected

Member Data Documentation

◆  ln

RayLightNoise * ln

The light noise structure. Always valid, not nullptr .

◆  ls

RayLightShadow * ls

The shadow structure. Always valid, not nullptr .

◆  lv

RayLightVisible * 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

Matrix64 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

向量 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

向量 lens_color

Color for the lens flares.

◆  lc

RayLightCaustics * 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

ObjectRestriction lr

Light restriction.

◆  userdata

void* userdata

Only to be used by plugin renderers.

◆  onlyz

Bool onlyz

Only Z.

◆  arearadius

向量 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 向量 * 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

矩阵 * 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

向量 area_backcolor

Area light back color.

由于
R19

◆  gradient

渐变 * gradient

Color gradient.

◆  gradient_multiplier

Float gradient_multiplier

渐变 multiplier.

◆  lens_imul

Float lens_imul

Lens multiplier.

◆  texadr

TexList* texadr

Texture address. Can be nullptr , always check.

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

◆  texcnt

Int32 texcnt

Texture count.