nuclide/Documentation/Materials/SurfaceCommands/bemode.md

1.6 KiB

Material Command List

bemode

Syntax

bemode

Overview

Filters which back end rendering features are drawn on top of the material. While you're not encouraged to be overriding this value, it is sometimes necessary.

Modes

These are the different modes that we can specify.

rtlight

All light types will be drawn onto this surface.

rtlight_only

Dynamic lights only.

rtlight_smap

Shadowmaps only.

rtlight_spot

Spotlights only.

rtlight_cube

Cubemap lights only.

rtlight_cube_smap

Cubemap lights and shadowmaps only.

rtlight_cube_spot

Cubemap lights and spotlights only.

rtlight_spot_smap

Spot lights and shadowmaps only.

rtlight_cube_spot_smap

Cubemap lights, spot lights and shadowmaps only.

crepuscular

For skies that might cast rays.

Those are rendered to a frame buffer object (with everything else being @ref bemode_depthdark) and is then applied to the screen as a post-processing effect.

depthonly

Used mainly by shadow maps.

depthdark

Black depth passes only. Used to draw a black world, when r_shadow_realtime_world_lightmaps is 0 for example.

gbuffer
prelight

Deferred lighting only.

fog

Fog layer only.