Log inGet started
Package

material.renderFeature

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

material

The material sky backdrop: the sky drawn by any sky-domain material, named in material, with exposure and rotation.

It enqueues no pass. It writes one Sky row (skyType = "material") on a temporary entity, which the engine draws as the scene's sky while that row is in force. It draws the sky and orients no light; light from the drawn sky reaches the scene through a member that captures it, such as skyLight. Name it as a sky's backdrop member for a painted, photographed or shader-made sky.

Parameters

Its parameters are its own settings and the shader properties of the material it names, each with the Field descriptor of the property's kind and the material's value as its default (asset.schema(backdrop, { material = ... }), and in a sky or a setup backdrop/<property> and sky/backdrop/<property>). A shader property named like one of its own settings (material, exposure, rotation) stays the material's.

While every property value stated for it is the material's own, it draws the material itself. Once one differs, it draws a runtime copy of the material with the stated values laid over the material's own; the material asset is not written. A texture property's value binds that texture in the copy.

Two applications of the backdrop share its one live feature, the way every render feature's do: the settings of the newest application to state something new are in force, and dropping it brings back the settings of the one before it.