coastline 0.0.4
Loading...
Searching...
No Matches
coastline::FlatMaterial Struct Reference

How a run of flat quads is coloured: the textures and the colour combiner of the RDP. More...

#include <scenerenderer.h>

Collaboration diagram for coastline::FlatMaterial:

Public Attributes

const RenderTexture * texel0 = nullptr
const RenderTexture * texel1 = nullptr
std::array< std::uint32_t, 2 > combine {}
bool twoCycle = false
std::array< float, 4 > prim {1.0f, 1.0f, 1.0f, 1.0f}
std::array< float, 4 > env {1.0f, 1.0f, 1.0f, 1.0f}
std::array< float, 4 > texel1Transform {1.0f, 1.0f, 0.0f, 0.0f}
 The scale of u and v, then their offset, from the texels of texel0 to those of texel1.
float alphaCut = -1.0f
bool ditherOpacity = false

Detailed Description

How a run of flat quads is coloured: the textures and the colour combiner of the RDP.

Member Data Documentation

◆ texel0

const RenderTexture* coastline::FlatMaterial::texel0 = nullptr

The first texture, or none for white.

◆ texel1

const RenderTexture* coastline::FlatMaterial::texel1 = nullptr

The second texture, or none for white.

◆ combine

std::array<std::uint32_t, 2> coastline::FlatMaterial::combine {}

The words of the combiner, or 0 for texel times colour.

◆ twoCycle

bool coastline::FlatMaterial::twoCycle = false

Whether the combiner runs both of its cycles.

◆ prim

std::array<float, 4> coastline::FlatMaterial::prim {1.0f, 1.0f, 1.0f, 1.0f}

The primitive colour.

◆ env

std::array<float, 4> coastline::FlatMaterial::env {1.0f, 1.0f, 1.0f, 1.0f}

The environment colour.

◆ texel1Transform

std::array<float, 4> coastline::FlatMaterial::texel1Transform {1.0f, 1.0f, 0.0f, 0.0f}

The scale of u and v, then their offset, from the texels of texel0 to those of texel1.

◆ alphaCut

float coastline::FlatMaterial::alphaCut = -1.0f

The alpha below which nothing is drawn, below 0 for none.

◆ ditherOpacity

bool coastline::FlatMaterial::ditherOpacity = false

Ordered opacity with depth writes instead of blending.


The documentation for this struct was generated from the following file: