CSGMesh3D.xml 1.0 KB

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CSGMesh3D" inherits="CSGPrimitive3D" version="4.0">
  3. <brief_description>
  4. A CSG Mesh shape that uses a mesh resource.
  5. </brief_description>
  6. <description>
  7. This CSG node allows you to use any mesh resource as a CSG shape, provided it is closed, does not self-intersect, does not contain internal faces and has no edges that connect to more than two faces.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <members>
  12. <member name="material" type="Material" setter="set_material" getter="get_material">
  13. The [Material] used in drawing the CSG shape.
  14. </member>
  15. <member name="mesh" type="Mesh" setter="set_mesh" getter="get_mesh">
  16. The [Mesh] resource to use as a CSG shape.
  17. [b]Note:[/b] When using an [ArrayMesh], avoid meshes with vertex normals unless a flat shader is required. By default, CSGMesh will ignore the mesh's vertex normals and use a smooth shader calculated using the faces' normals. If a flat shader is required, ensure that all faces' vertex normals are parallel.
  18. </member>
  19. </members>
  20. </class>