Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PointMesh
继承: PrimitiveMesh < Mesh < Resource < RefCounted < Object
单点图元网格。
描述
PointMesh 由一个点构成的基本网格。这个点不依赖于三角形,而是作为屏幕上的一个矩形来渲染,大小是固定的。旨在用于粒子系统,但也可以作为固定大小公告板精灵的轻量级渲染方法(例如在点云中使用)。
为了显示,单点网格必须使用具有点大小的材质。点的大小可以在着色器中通过内置的 POINT_SIZE 访问,也可以在 BaseMaterial3D 中设置 BaseMaterial3D.use_point_size 并通过变量 BaseMaterial3D.point_size 访问。
注意:使用单点网格时,会忽略平时能够影响顶点的属性,包括 BaseMaterial3D.billboard_mode、BaseMaterial3D.grow、BaseMaterial3D.cull_mode 等。