Absulit / Absulit/points

RenderPass method refactor like uniforms, storages, and constants

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

説明

To continue work from #275

RenderPass Class

```js

constructor(vertexShader, fragmentShader, computeShader, workgroupCountX, workgroupCountY, workgroupCountZ, init)

setCube(
name,
coordinate = { x: 0, y: 0, z: 0 },
dimensions = { width: 1, height: 1, depth: 1 },
color = { r: 1, g: 0, b: 1, a: 0 }
)

```

among others

The idea here would be to apply two changes
1- pass a config object as only parameter
2- use also a Builder Pattern, to call separate methods and leave the others as default

```js

const r0 = new RenderPass({...}) // here all its attributes or none
r0.setVertexShader(vertexvar)
.setFragmentShader(fragmentvar)
.setWorkGroupCountX(8)

points.setCube().setName('myCube')

```

Use Uniforms, Storages, and Constants as reference for this work.

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

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

評価

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

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

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