playcanvas / engine

JavaScript game engine built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.52k stars 1.33k forks source link

Refactor high level integration of VFX in the engine #6700

Open mvaligursky opened 2 months ago

mvaligursky commented 2 months ago

Ideally:

slimbuck commented 2 months ago

This issue reminds me a bit of gaussian splats which also have both global (shared) state and per-view state.

In the engine, meshes and materials are assumed identical in all camera views (except for shader pass and matrices) and it would be nice if we had a formal way of creating and updating arbitrary per-view state.