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 |
int | get_cast_shadows_setting ( ) 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_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_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
- 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
bool get_flag ( int flag ) 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_flag ( int flag, bool value )
void set_material_override ( Object material )
Set the material override for the whole geometry.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_geometryinstance.html