Unigine::LightWorld Class
Interface for light omni handling.
To use this class, include the UnigineLightWorld.h file.
Unigine::LightWorld Class
Members
static Ptr< LightWorld > create (const NodePtr & node)
LightWorld constructor.Arguments
- const NodePtr & node - Node smart pointer.
static Ptr< LightWorld > create (const LightPtr & light)
LightWorld constructor.Arguments
- const LightPtr & light - Light smart pointer.
static Ptr< LightWorld > create (const vec4 & color)
LightWorld constructor.Arguments
- const vec4 & color - Light color.
virtual void setScattering (int scattering) const =0
Sets a light scattering flag.Arguments
- int scattering - Light scattering flag.
virtual int getScattering () const =0
Returns a light scattering flag.Return value
Light scattering flag.virtual void setShadowRange (float range) const =0
Sets a light shadow range.Arguments
- float range - Light shadow range.
virtual float getShadowRange () const =0
Returns a light shadow range.Return value
Light shadow range.virtual void setShadowDistribute (float distribute) const =0
Sets the light shadow distribution parameter.Arguments
- float distribute - Light shadow distribution parameter.
virtual float getShadowDistribute () const =0
Returns the light shadow distribution parameter.Return value
Light shadow distribution parameter.virtual void setNumShadowSplits (int num) const =0
Sets the number of light shadow splits.Arguments
- int num - The number of light shadow splits.
virtual int getNumShadowSplits () const =0
Returns the number of light shadow splits.Return value
The number of light shadow splits.Last update: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter