SilverScreen Solid Modeler

LIGHT_NODE

LIGHT_NODE

Previous topic Next topic  

LIGHT_NODE

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

LIGHT_NODE

 

Structure

A data type that stores properties for a light source.

 

   

 struct LIGHT_NODE

    {

    int         type;

    int         enabled;

    NAME        light_name;

    char        *light_shader;

    SS_XYZ      location;

    SS_XYZ      direction;

    double      exponent;

    double      constant_attenuation;

    double      linear_attenuation;

    double      quadratic_attenuation;

    double      cone_angle;

    RGB         light_rgb;

    LIGHT_NODE  *next_light;

    };

 

 


Members

Member

Description

type

type of light source

enabled

TRUE if enabled

light_name

name of light source

light_shader

 

location

location of light source

direction

vector indicating direction of light

exponent

exponent for light decrease with distance

constant_attenuation

attenuation parameter

linear_attenuation

attenuation parameter

quadratic_attenuation

attenuation parameter

cone_angle

cone angle for cone light sources

light_rgb

color of light source

next_light

pointer to next LIGHT_NODE