VFX GraphのCustom HLSL Blockを使用したサンプルです。 球上にpositionをセットするコンテキストノードをHLSLで作って、Initializeコンテキストで使用しています。
env | |
---|---|
OS | Windows 10 Home |
Unity | 2023.2.0a22 |
VFX Graph | 16.0.2 |
Assets/CustomHLSLTestbed/Scenes/Main.unity
を開いて再生します。
球の表面上の点をサンプリングするロジックに関する記事を参考にしています。