Properties

light3d Class Reference

动态光源类,通过 iworld3d.create_lightiworld3d.scene3d.create_light 创建实例。 More...

List of all members.

Properties

 ambient = property(None, _set_ambient)
 环境光色RGB.
 diffuse = property(None, _set_diffuse)
 漫反射色RGB.
 direction = property(None, _set_direction)
 光源方向向量(聚光灯源,平行光源有效).
 enable = property(_get_enable, _set_enable)
 是否启用.
 name = property(_get_name, None)
 光源内部名称.
 position = property(_get_position, _set_position)
 光源位置(点光源、聚光灯源有效).
 shadow_bias = property(_get_shadow_bias, _set_shadow_bias)
 光源产生影子位置的偏移(点光源有效).
 specular = property(None, _set_specular)
 高光色RGB.
 range = property(None, _set_range)
 有效范围(点光源、聚光灯源有效).
 type = property(_get_type, None)
 光源类型.

Detailed Description

动态光源类,通过 iworld3d.create_lightiworld3d.scene3d.create_light 创建实例。


Property Documentation

ambient = property(None, _set_ambient) [static]

环境光色RGB.

(int, int, int) 只写,是一个带三个int的tuple,分别代表RGB三色

diffuse = property(None, _set_diffuse) [static]

漫反射色RGB.

(int, int, int) 只写,是一个带三个int的tuple,分别代表RGB三色

direction = property(None, _set_direction) [static]

光源方向向量(聚光灯源,平行光源有效).

math3d.vector 只写.

enable = property(_get_enable, _set_enable) [static]

是否启用.

bool 读写.

name = property(_get_name, None) [static]

光源内部名称.

str 只读.

position = property(_get_position, _set_position) [static]

光源位置(点光源、聚光灯源有效).

math3d.vector 读写.

shadow_bias = property(_get_shadow_bias, _set_shadow_bias) [static]

光源产生影子位置的偏移(点光源有效).

float 读写.

specular = property(None, _set_specular) [static]

高光色RGB.

(int, int, int) 只写,是一个带三个int的tuple,分别代表RGB三色

range = property(None, _set_range) [static]

有效范围(点光源、聚光灯源有效).

float 只写.

type = property(_get_type, None) [static]

光源类型.

int 只读.

 All Classes Namespaces Functions Variables Properties