Inherits: VisualInstance < Spatial < Node < Object
Inherited By: CPUParticles, CSGShape, ImmediateGeometry, MeshInstance, MultiMeshInstance, Particles, SpriteBase3D
Base node for geometry-based visual instances.
Base node for geometry-based visual instances. Shares some common functionality like visibility and custom materials.
bool | get_flag ( Flags flag ) const |
void | set_custom_aabb ( AABB aabb ) |
void | set_flag ( Flags flag, bool value ) |
enum ShadowCastingSetting:
Will take culling into account, so faces not being rendered will not be taken into account when shadow casting.
Will not take culling into account, so all faces will be taken into account when shadow casting.
In other words, the actual mesh will not be visible, only the shadows casted from the mesh will be.
enum Flags:
Default | 1 |
Setter | set_cast_shadows_setting(value) |
Getter | get_cast_shadows_setting() |
The selected shadow casting flag. See ShadowCastingSetting for possible values.
Default | 0.0 |
Setter | set_extra_cull_margin(value) |
Getter | get_extra_cull_margin() |
The extra distance added to the GeometryInstance's bounding box (AABB) to increase its cull box.
Default | 0.0 |
Setter | set_lod_max_distance(value) |
Getter | get_lod_max_distance() |
The GeometryInstance's max LOD distance.
Note: This property currently has no effect.
Default | 0.0 |
Setter | set_lod_max_hysteresis(value) |
Getter | get_lod_max_hysteresis() |
The GeometryInstance's max LOD margin.
Note: This property currently has no effect.
Default | 0.0 |
Setter | set_lod_min_distance(value) |
Getter | get_lod_min_distance() |
The GeometryInstance's min LOD distance.
Note: This property currently has no effect.
Default | 0.0 |
Setter | set_lod_min_hysteresis(value) |
Getter | get_lod_min_hysteresis() |
The GeometryInstance's min LOD margin.
Note: This property currently has no effect.
Setter | set_material_override(value) |
Getter | get_material_override() |
The material override for the whole geometry.
If a material is assigned to this property, it will be used instead of any material set in any material slot of the mesh.
Default | false |
Setter | set_flag(value) |
Getter | get_flag() |
If true
, this GeometryInstance will be used when baking lights using a GIProbe or BakedLightmap.
Returns the Flags that have been set for this object.
Overrides the bounding box of this node with a custom one. To remove it, set an AABB with all fields set to zero.
Sets the Flags specified. See Flags for options.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_geometryinstance.html