GeometryInstance¶
Inherits: VisualInstance < Spatial < Node < Object
Inherited By: SpriteBase3D, MultiMeshInstance, MeshInstance, Particles, Quad, TestCube, ImmediateGeometry
Category: Core
Brief Description¶
Base node for geometry based visual instances.
Member Functions¶
get_baked_light_texture_id ( ) const |
|
get_cast_shadows_setting ( ) const |
|
get_draw_range_begin ( ) const |
|
get_draw_range_end ( ) const |
|
get_extra_cull_margin ( ) const |
|
get_material_override ( ) const |
|
void |
set_baked_light_texture_id ( int id ) |
void |
set_cast_shadows_setting ( int shadow_casting_setting ) |
void |
set_draw_range_begin ( float mode ) |
void |
set_draw_range_end ( float mode ) |
void |
set_extra_cull_margin ( float margin ) |
void |
|
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
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_baked_light_texture_id ( ) const
int get_cast_shadows_setting ( ) 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_cast_shadows_setting ( int shadow_casting_setting )
void set_draw_range_begin ( float mode )
void set_draw_range_end ( float mode )
void set_extra_cull_margin ( float margin )
void set_material_override ( Object material )
Set the material override for the whole geometry.