SphereLight

class SphereLight

Bases: PointLight

A sphere light is like a point light, except that it represents a sphere with a radius, rather than being an infinitely thin point in space.

New in version 1.10.0.

Inheritance diagram

Inheritance diagram of SphereLight

explicit SphereLight(std::string const &name)

Do not call the copy constructor directly; instead, use make_copy() or copy_subgraph() to make a copy of a node.

static TypeHandle get_class_type(void)
PN_stdfloat get_radius(void) const

Returns the radius of the sphere.

void set_radius(PN_stdfloat radius)

Sets the radius of the sphere.