GeometryInstance

Inherits: VisualInstance < Spatial < Node < Object

Inherited By: MultiMeshInstance, MeshInstance, Particles, SpriteBase3D, ImmediateGeometry

Category: Core

Brief Description

Base node for geometry based visual instances.

Member Functions

int get_cast_shadows_setting ( ) const
float get_extra_cull_margin ( ) const
bool get_flag ( int flag ) const
float get_lod_max_distance ( ) const
float get_lod_max_hysteresis ( ) const
float get_lod_min_distance ( ) const
float get_lod_min_hysteresis ( ) const
Material get_material_override ( ) const
void set_cast_shadows_setting ( int shadow_casting_setting )
void set_extra_cull_margin ( float margin )
void set_flag ( int flag, bool value )
void set_lod_max_distance ( float mode )
void set_lod_max_hysteresis ( float mode )
void set_lod_min_distance ( float mode )
void set_lod_min_hysteresis ( float mode )
void set_material_override ( Material material )

Member Variables

Numeric Constants

  • FLAG_MAX = 1
  • SHADOW_CASTING_SETTING_OFF = 0
  • SHADOW_CASTING_SETTING_ON = 1
  • SHADOW_CASTING_SETTING_DOUBLE_SIDED = 2
  • SHADOW_CASTING_SETTING_SHADOWS_ONLY = 3

Description

Base node for geometry based visual instances. Shares some common functionality like visibility and custom materials.

Member Function Description

  • int get_cast_shadows_setting ( ) const
  • float get_extra_cull_margin ( ) const
  • float get_lod_max_distance ( ) const
  • float get_lod_max_hysteresis ( ) const
  • float get_lod_min_distance ( ) const
  • float get_lod_min_hysteresis ( ) const
  • Material get_material_override ( ) const

Return the material override for the whole geometry.

  • void set_cast_shadows_setting ( int shadow_casting_setting )
  • void set_extra_cull_margin ( float margin )
  • void set_flag ( int flag, bool value )
  • void set_lod_max_distance ( float mode )
  • void set_lod_max_hysteresis ( float mode )
  • void set_lod_min_distance ( float mode )
  • void set_lod_min_hysteresis ( float mode )
  • void set_material_override ( Material material )

Set the material override for the whole geometry.