RenderPipeline output described as hiccup, for the :render-pipeline option
of threeagent.core/render:
[:add :world [bloom-effect {:strength 0.4} :world]]
:world, or :default for a single scene) is
that scene pass's color output[:pass scene-key texture-name] picks another pass output, e.g. "depth"[f opts? & inputs] calls (f [input-nodes...] opts) - any function
returning a node, typically a thin wrapper around a three addon[k opts? & inputs] with a keyword looks k up in the effects registered
through register-effect!, then in the built-ins :add :sub :mul :mixRenderPipeline output described as hiccup, for the `:render-pipeline` option
of `threeagent.core/render`:
[:add :world [bloom-effect {:strength 0.4} :world]]
- a keyword naming a scene (`:world`, or `:default` for a single scene) is
that scene pass's color output
- `[:pass scene-key texture-name]` picks another pass output, e.g. "depth"
- `[f opts? & inputs]` calls `(f [input-nodes...] opts)` - any function
returning a node, typically a thin wrapper around a three addon
- `[k opts? & inputs]` with a keyword looks `k` up in the effects registered
through `register-effect!`, then in the built-ins :add :sub :mul :mix
- anything else (nodes, numbers) is used as is(->pipeline-fn render-pipeline)The :render-pipeline option as a fn of passes: hiccup is compiled with
build, fns are returned as is.
The `:render-pipeline` option as a fn of passes: hiccup is compiled with `build`, fns are returned as is.
(build form passes)Turn a pipeline hiccup form into an output node given {scene-key -> pass}.
Equal subforms are built once and share their node, so an effect used in
two branches (and its uniforms) exists only once.
Turn a pipeline hiccup `form` into an output node given `{scene-key -> pass}`.
Equal subforms are built once and share their node, so an effect used in
two branches (and its uniforms) exists only once.(register-effect! k f)Make (f input-nodes opts) available as [k opts? & inputs].
Make `(f input-nodes opts)` available as `[k opts? & inputs]`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |