Unigine::ObjectVolumeSphere Class
Interface for object volumesphere handling. See also the UnigineScript analog.
To use this class, include the UnigineObjectVolumeSphere.h file.
Unigine::ObjectVolumeSphere Class
Members
static int type ()
ObjectVolumeSphere type.Return value
ObjectVolumeSphere type identifier.static Ptr< ObjectVolumeSphere > create (const NodePtr & node)
ObjectVolumeSphere constructor.Arguments
- const NodePtr & node - Node smart pointer.
static Ptr< ObjectVolumeSphere > create (const ObjectPtr & object)
ObjectVolumeSphere constructor.Arguments
- const ObjectPtr & object - Object smart pointer.
static Ptr< ObjectVolumeSphere > create (const vec3 & radius)
ObjectVolumeSphere constructor. If a volume light material is assigned to an object, it is rendered based only on the radius value along the X axis. If its radius values along the Y or Z axes are smaller than along the X axis, the object is cut along them.Arguments
- const vec3 & radius - Radius values of the new volume sphere object in units. If a negative value is provided, 0 will be used instead.
virtual void setRadius (const vec3 & radius) const =0
Updates volume sphere radius values. If a volume light material is assigned to an object, it is rendered based only on the radius value along the X axis. If its radius values along the Y or Z axes are smaller than along the X axis, the object is cut along them.Arguments
- const vec3 & radius - New radius values of the volume sphere in units. If a negative value is provided, 0 will be used instead.
virtual vec3 getRadius () const =0
Returns the volume sphere radius values.Return value
The radius values of the volume sphere in units.Last update: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter