Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

PostProcessingProps

Property Type Default value Description
children? ReactNode undefined The passes, in the order they draw. Any postprocessing effect or pass goes here, the engine’s own or the library’s, a game’s own as <primitive object={effect} />. A child that is neither throws in development. None leaves tone mapping alone.
multisampling? number undefined Samples per pixel. The stack draws off the canvas and loses its antialiasing, so this puts it back; 0 turns it off. Left out, the player’s quality level decides, and where the level draws at a pixel ratio of 2 or more, none.
ref? Ref<EffectComposer> undefined -
toneMapping? false | ToneMappingMode ToneMappingMode.ACES_FILMIC The curve that maps the frame’s light to the screen, applied after every child. ACES, the renderer’s own, unless changed; false for a child that tone maps itself.