class_geometryinstance.rst 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the GeometryInstance.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_GeometryInstance:
  5. GeometryInstance
  6. ================
  7. **Inherits:** :ref:`VisualInstance<class_visualinstance>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`MultiMeshInstance<class_multimeshinstance>`, :ref:`MeshInstance<class_meshinstance>`, :ref:`Particles<class_particles>`, :ref:`SpriteBase3D<class_spritebase3d>`, :ref:`ImmediateGeometry<class_immediategeometry>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Base node for geometry based visual instances.
  13. Member Variables
  14. ----------------
  15. .. _class_GeometryInstance_cast_shadow:
  16. - :ref:`ShadowCastingSetting<enum_geometryinstance_shadowcastingsetting>` **cast_shadow** - The selected shadow casting flag. See SHADOW_CASTING_SETTING\_\* constants for values.
  17. .. _class_GeometryInstance_extra_cull_margin:
  18. - :ref:`float<class_float>` **extra_cull_margin** - The extra distance added to the GeometryInstance's bounding box (:ref:`AABB<class_aabb>`) to increase its cull box.
  19. .. _class_GeometryInstance_lod_max_distance:
  20. - :ref:`float<class_float>` **lod_max_distance** - The GeometryInstance's max LOD distance.
  21. .. _class_GeometryInstance_lod_max_hysteresis:
  22. - :ref:`float<class_float>` **lod_max_hysteresis** - The GeometryInstance's max LOD margin.
  23. .. _class_GeometryInstance_lod_min_distance:
  24. - :ref:`float<class_float>` **lod_min_distance** - The GeometryInstance's min LOD distance.
  25. .. _class_GeometryInstance_lod_min_hysteresis:
  26. - :ref:`float<class_float>` **lod_min_hysteresis** - The GeometryInstance's min LOD margin.
  27. .. _class_GeometryInstance_material_override:
  28. - :ref:`Material<class_material>` **material_override** - The material override for the whole geometry.
  29. If there is a material in material_override, it will be used instead of any material set in any material slot of the mesh.
  30. .. _class_GeometryInstance_use_in_baked_light:
  31. - :ref:`bool<class_bool>` **use_in_baked_light** - If ``true`` this GeometryInstance will be used when baking lights using a :ref:`GIProbe<class_giprobe>` and/or any other form of baked lighting.
  32. Enums
  33. -----
  34. .. _enum_GeometryInstance_Flags:
  35. enum **Flags**
  36. - **FLAG_USE_BAKED_LIGHT** = **0** --- Will allow the GeometryInstance to be used when baking lights using a :ref:`GIProbe<class_giprobe>` and/or any other form of baked lighting.
  37. Added documentation for GeometryInstance and VisualInstance
  38. - **FLAG_MAX** = **1**
  39. .. _enum_GeometryInstance_ShadowCastingSetting:
  40. enum **ShadowCastingSetting**
  41. - **SHADOW_CASTING_SETTING_OFF** = **0** --- Will not cast any shadows.
  42. - **SHADOW_CASTING_SETTING_ON** = **1** --- Will cast shadows from all visible faces in the GeometryInstance.
  43. Will take culling into account, so faces not being rendered will not be taken into account when shadow casting.
  44. - **SHADOW_CASTING_SETTING_DOUBLE_SIDED** = **2** --- Will cast shadows from all visible faces in the GeometryInstance.
  45. Will not take culling into account, so all faces will be taken into account when shadow casting.
  46. - **SHADOW_CASTING_SETTING_SHADOWS_ONLY** = **3** --- Will only show the shadows casted from this object.
  47. In other words: The actual mesh will not be visible, only the shadows casted from the mesh.
  48. Description
  49. -----------
  50. Base node for geometry based visual instances. Shares some common functionality like visibility and custom materials.