Questions about FrameGraphs

So I was dabbling with the onion skinning tutorial and started to look into whats the process for passing setters for uniforms on specific tasks.

https://playground.babylonjs.com/?inspectorv2=true#8EU85D#3

I ended up passing an update function back with the createFrameGraph function, but feel like there should be a more “correct” way to tap into the tasks effect.

Was thinking it would look something like:

```
const frameGraph = createFrameGraph(...)
frameGraph.getTaskByName("onionSkin").getEffect().setFloat(...)
```
But that does not seem to get me where I need to go.
I’m sure its something simple, just looking for some advice. @Evgeni_Popov

cc @Evgeni_Popov

You were on the right track: frameGraph.getTaskByName("onionSkin") gets the task, so you can simply do frameGraph.getTaskByName("onionSkin").power = 0.1:

https://playground.babylonjs.com/?inspectorv2=true#8EU85D#4

2 Likes

Thank you!