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

The specular highlight of a car, as the PC release generates its coordinates for the tile of gDPSetHilite1Tile(): a quarter of the dot of the normal with each axis across the texture, from the offset of the tile, added to the colour drawn where the depth is equal. More...

#include <scenerenderer.h>

Collaboration diagram for coastline::Highlight:

Public Attributes

const RenderTexture * texture
std::array< float, 3 > across {}
std::array< float, 3 > up {}
float s = 0.0f
float t = 0.0f
std::array< std::uint32_t, 2 > combine {}
std::array< float, 4 > primitive {}

Detailed Description

The specular highlight of a car, as the PC release generates its coordinates for the tile of gDPSetHilite1Tile(): a quarter of the dot of the normal with each axis across the texture, from the offset of the tile, added to the colour drawn where the depth is equal.

Member Data Documentation

◆ texture

const RenderTexture* coastline::Highlight::texture
Initial value:
=
nullptr

The texture of the highlight, its alpha the shine.

◆ across

std::array<float, 3> coastline::Highlight::across {}

The axis of the coordinate across the texture.

◆ up

std::array<float, 3> coastline::Highlight::up {}

The axis of the coordinate down the texture.

◆ s

float coastline::Highlight::s = 0.0f

The offset across the texture, from 0 to 1.

◆ t

float coastline::Highlight::t = 0.0f

The offset down the texture, from 0 to 1.

◆ combine

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

The words of gDPSetCombineLERP().

◆ primitive

std::array<float, 4> coastline::Highlight::primitive {}

The primitive colour, from 0 to 1.


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