GeometryInstance

Inherits: VisualInstance < Spatial < Node < Object

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

Category: Core

Brief Description

Base node for geometry based visual instances.

Member Functions

int get_baked_light_texture_id ( ) const
float get_draw_range_begin ( ) const
float get_draw_range_end ( ) const
float get_extra_cull_margin ( ) const
bool get_flag ( int flag ) const
Object get_material_override ( ) const
void set_baked_light_texture_id ( int id )
void set_draw_range_begin ( float mode )
void set_draw_range_end ( float mode )
void set_extra_cull_margin ( float margin )
void set_flag ( int flag, bool value )
void set_material_override ( Object material )

Numeric Constants

  • FLAG_VISIBLE = 0
  • FLAG_CAST_SHADOW = 3
  • FLAG_RECEIVE_SHADOWS = 4
  • FLAG_BILLBOARD = 1
  • FLAG_BILLBOARD_FIX_Y = 2
  • FLAG_DEPH_SCALE = 5
  • FLAG_VISIBLE_IN_ALL_ROOMS = 6
  • FLAG_MAX = 8

Description

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

Member Function Description

  • int get_baked_light_texture_id ( ) const
  • float get_draw_range_begin ( ) const
  • float get_draw_range_end ( ) const
  • float get_extra_cull_margin ( ) const
  • Object get_material_override ( ) const

Return the material override for the whole geometry.

  • void set_baked_light_texture_id ( int id )
  • void set_draw_range_begin ( float mode )
  • void set_draw_range_end ( float mode )
  • void set_extra_cull_margin ( float margin )
  • void set_flag ( int flag, bool value )
  • void set_material_override ( Object material )

Set the material override for the whole geometry.