OmniLight

Inherits: Light < VisualInstance < CullInstance < Spatial < Node < Object

Luz omnidireccional, como una bombilla o una vela.

Descripción

An Omnidirectional light is a type of Light that emits light in all directions. The light is attenuated by distance and this attenuation can be configured by changing its energy, radius, and attenuation parameters.

Note: By default, only 32 OmniLights may affect a single mesh resource at once. Consider splitting your level into several meshes to decrease the likelihood that more than 32 lights will affect the same mesh resource. Splitting the level mesh will also improve frustum culling effectiveness, leading to greater performance. If you need to use more lights per mesh, you can increase ProjectSettings.rendering/limits/rendering/max_lights_per_object at the cost of shader compilation times.

Tutoriales

Propiedades

float

omni_attenuation

1.0

float

omni_range

5.0

ShadowDetail

omni_shadow_detail

1

ShadowMode

omni_shadow_mode

1

Enumeraciones

enum ShadowMode:

  • SHADOW_DUAL_PARABOLOID = 0 --- Las sombras se convierten en una textura de doble paraboloide. Más rápido que SHADOW_CUBE, pero de menor calidad.

  • SHADOW_CUBE = 1 --- Las sombras se representan en un mapa de cubos. Más lento que SHADOW_DUAL_PARABOLOID, pero de mayor calidad.


enum ShadowDetail:

  • SHADOW_DETAIL_VERTICAL = 0 --- Use more detail vertically when computing the shadow.

  • SHADOW_DETAIL_HORIZONTAL = 1 --- Use more detail horizontally when computing the shadow.

Descripciones de Propiedades

Default

1.0

Setter

set_param(value)

Getter

get_param()

La curva de atenuación de la luz. En el Inspector se puede acceder a una serie de preajustes haciendo clic con el botón derecho del ratón en la curva.


Default

5.0

Setter

set_param(value)

Getter

get_param()

El radio de la luz. Tenga en cuenta que el área efectivamente iluminada puede parecer más pequeña dependiendo del omni_attenuation en uso. No importa el omni_attenuation en uso, la luz nunca alcanzará nada fuera de este radio.


Default

1

Setter

set_shadow_detail(value)

Getter

get_shadow_detail()

See ShadowDetail.


Default

1

Setter

set_shadow_mode(value)

Getter

get_shadow_mode()

Ver ShadowMode.