Scripting API

Scripting API

RenderSetup

Record in Abyss.Core, from Abyss.Core.

The renderer.

public record RenderSetup

Properties

ClearColor

public (float R, float G, float B, float A)? ClearColor { get; init; }

Linear RGBA in 0..1 for the color the window is cleared to, or null for the engine's default.

CameraMsaa

public int? CameraMsaa { get; init; }

How many samples a 2D or 3D camera draws with where it says none of its own — 1 for no MSAA, 2, 4 or 8 — or null for Bevy's four. A camera with an MSAA of its own keeps it.

A built game on Android gives its Player's Android Anti-Aliasing, none unless the game says: a phone's GPU pays for MSAA in every pass Bevy draws a picture in, and a menu drawing 44 frames a second with it drew 89 without.