RuntimeRenderStep class final
A render step a plugin brought as data: a full-screen fragment stage at an anchor, switched like the engine's own steps.
Constructors
-
RuntimeRenderStep({required String name, required RenderAnchor anchor, required Map<
String, String> shaders, bool present = false, List<String> needs = const <String>[], List<String> after = const <String>[], List<String> before = const <String>[], RenderProgram? program, LightTypes? lightTypes}) -
A step named
nameatanchor, drawn byshaders; by default over the scene's light every frame, with no needs and no ordering.const
Properties
-
after
→ List<
String> -
Other nodes at anchor it goes after, by name.
final
- anchor → RenderAnchor
-
Where the pass goes.
final
-
before
→ List<
String> -
Other nodes at anchor it goes before, by name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lightTypes → LightTypes?
-
The renderer's light types, which a program asks the codes of; null
where it asks none.
final
- name → String
-
The step's name and its pass's name:
<plugin id>.<step>.final -
needs
→ List<
String> -
Built-in steps it cannot run without, by name:
bloom.final - present → bool
-
Whether it draws over the finished picture (
frame, after tone mapping) rather than over the scene's light (hdr_color).final - program → RenderProgram?
-
What drives the step frame by frame — a Wasm render module of the
plugin's — or null for a step drawn every frame with its uniforms at
their defaults. A driven step draws a frame only when the program
says so, with the uniforms it set; it is written in the material
language, since a raw stage has no uniforms the program could name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shaders
→ Map<
String, String> -
The fragment stage, by backend, as source that backend compiles at run
time — GLSL ES 3.00 for RuntimeBackends.webgl. Decision 15 allows a
raw stage per backend; a backend missing here switches the step off
and says so.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- materialStage → const String
-
The key of shaders a stage written in the material language goes
under, in place of a backend's name —
"shaders": {"material": "vignette.f3dmat"}in a.f3dplugin.