GeometryInstance.xml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="GeometryInstance" inherits="VisualInstance" category="Core" version="3.1.2">
  3. <brief_description>
  4. Base node for geometry based visual instances.
  5. </brief_description>
  6. <description>
  7. Base node for geometry based visual instances. Shares some common functionality like visibility and custom materials.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="cast_shadow" type="int" setter="set_cast_shadows_setting" getter="get_cast_shadows_setting" enum="GeometryInstance.ShadowCastingSetting">
  15. The selected shadow casting flag. See [enum ShadowCastingSetting] for possible values.
  16. </member>
  17. <member name="extra_cull_margin" type="float" setter="set_extra_cull_margin" getter="get_extra_cull_margin">
  18. The extra distance added to the GeometryInstance's bounding box ([AABB]) to increase its cull box.
  19. </member>
  20. <member name="lod_max_distance" type="float" setter="set_lod_max_distance" getter="get_lod_max_distance">
  21. The GeometryInstance's max LOD distance.
  22. [b]Note:[/b] This property currently has no effect.
  23. </member>
  24. <member name="lod_max_hysteresis" type="float" setter="set_lod_max_hysteresis" getter="get_lod_max_hysteresis">
  25. The GeometryInstance's max LOD margin.
  26. [b]Note:[/b] This property currently has no effect.
  27. </member>
  28. <member name="lod_min_distance" type="float" setter="set_lod_min_distance" getter="get_lod_min_distance">
  29. The GeometryInstance's min LOD distance.
  30. [b]Note:[/b] This property currently has no effect.
  31. </member>
  32. <member name="lod_min_hysteresis" type="float" setter="set_lod_min_hysteresis" getter="get_lod_min_hysteresis">
  33. The GeometryInstance's min LOD margin.
  34. [b]Note:[/b] This property currently has no effect.
  35. </member>
  36. <member name="material_override" type="Material" setter="set_material_override" getter="get_material_override">
  37. The material override for the whole geometry.
  38. If a material is assigned to this property, it will be used instead of any material set in any material slot of the mesh.
  39. </member>
  40. <member name="use_in_baked_light" type="bool" setter="set_flag" getter="get_flag">
  41. If [code]true[/code], this GeometryInstance will be used when baking lights using a [GIProbe] or [BakedLightmap].
  42. </member>
  43. </members>
  44. <constants>
  45. <constant name="SHADOW_CASTING_SETTING_OFF" value="0" enum="ShadowCastingSetting">
  46. Will not cast any shadows.
  47. </constant>
  48. <constant name="SHADOW_CASTING_SETTING_ON" value="1" enum="ShadowCastingSetting">
  49. Will cast shadows from all visible faces in the GeometryInstance.
  50. Will take culling into account, so faces not being rendered will not be taken into account when shadow casting.
  51. </constant>
  52. <constant name="SHADOW_CASTING_SETTING_DOUBLE_SIDED" value="2" enum="ShadowCastingSetting">
  53. Will cast shadows from all visible faces in the GeometryInstance.
  54. Will not take culling into account, so all faces will be taken into account when shadow casting.
  55. </constant>
  56. <constant name="SHADOW_CASTING_SETTING_SHADOWS_ONLY" value="3" enum="ShadowCastingSetting">
  57. Will only show the shadows casted from this object.
  58. In other words, the actual mesh will not be visible, only the shadows casted from the mesh will be.
  59. </constant>
  60. <constant name="FLAG_USE_BAKED_LIGHT" value="0" enum="Flags">
  61. Will allow the GeometryInstance to be used when baking lights using a [GIProbe] or [BakedLightmap].
  62. </constant>
  63. <constant name="FLAG_MAX" value="2" enum="Flags">
  64. Represents the size of the [enum Flags] enum.
  65. </constant>
  66. </constants>
  67. </class>