Просмотр исходного кода

PointsNodeMaterial: Clarify docs for `sizeNode`. (#31529)

* PointsNodeMaterial: Clarify docs for `sizeNode`.

* Update PointsNodeMaterial.js

Fix typo.

* Update PointsNodeMaterial.js
Michael Herzog 11 месяцев назад
Родитель
Сommit
0f93b6f0a5
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      src/materials/nodes/PointsNodeMaterial.js

+ 5 - 0
src/materials/nodes/PointsNodeMaterial.js

@@ -35,6 +35,11 @@ class PointsNodeMaterial extends SpriteNodeMaterial {
 		/**
 		 * This node property provides an additional way to set the point size.
 		 *
+		 * Note that WebGPU only supports point primitives with 1 pixel size. Consequently,
+		 * this node has no effect when the material is used with {@link Points} and a WebGPU
+		 * backend. If an application wants to render points with a size larger than 1 pixel,
+		 * the material should be used with {@link Sprite} and instancing.
+		 *
 		 * @type {?Node<vec2>}
 		 * @default null
 		 */

粤ICP备19079148号