Absulit / Absulit/points

Simplify instancing creation

オープン
#268 コメント 0 件 リアクション 0 件 担当者 1 名 @Absulit が担当を希望しています GitHub で見る
enhancement
主要言語
JavaScript
スター
56
フォーク
5
平均マージ
2分
マージ済み PR(30日)
1

説明

- Currently to create instances for particles or any other use, you have to make a large set of steps like:
- calculate the number of particles based on workgroup size and thread size
- pass those values (number of particles, worgroup size per dimension and threads per dimension) as constants to the library
- use those constants in the compute pass to calculate the @workgroup_size
- to indicate the number of instances you have to tell it to the added mesh this way with the `instanceCount`

```
glb_renderpass
.addMesh('lucy', positions, colors, colorSize, uvs, normals, indices)
.instanceCount = NUMPARTICLES;
```

It would be nice to have all of this in one step, like

renderPass.addInstances(meshName, numInstances)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。