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

The reflection of the sky on a car: the image the parts whose texture coordinates come from their normals sample, the axes those coordinates follow, and the column of the image the window starts at, as the tile of the reflection of the race takes it. More...

#include <scenerenderer.h>

Collaboration diagram for coastline::Reflection:

Public Attributes

const RenderTexture * texture = nullptr
std::array< float, 3 > across {}
std::array< float, 3 > up {}
float column = 0.0f
std::array< float, 4 > environment {1.0f, 1.0f, 1.0f, 1.0f}
 The environment colour the reflection blends towards by its alpha, the fog.
bool linear = false
 Select G_TEXTURE_GEN_LINEAR instead of regular texture generation.
bool n64 = false
 Use RSP texture generation and tile shifts instead of the PC coordinate conversion.

Detailed Description

The reflection of the sky on a car: the image the parts whose texture coordinates come from their normals sample, the axes those coordinates follow, and the column of the image the window starts at, as the tile of the reflection of the race takes it.

Member Data Documentation

◆ texture

const RenderTexture* coastline::Reflection::texture = nullptr

The image of the sky.

◆ across

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

The axis of the coordinate across the image.

◆ up

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

The axis of the coordinate down the image.

◆ column

float coastline::Reflection::column = 0.0f

The first column of the window, in texels.

◆ environment

std::array<float, 4> coastline::Reflection::environment {1.0f, 1.0f, 1.0f, 1.0f}

The environment colour the reflection blends towards by its alpha, the fog.

◆ linear

bool coastline::Reflection::linear = false

Select G_TEXTURE_GEN_LINEAR instead of regular texture generation.

PC mapping follows BRD3D's projection; N64 mapping uses the inverse cosine on both axes.

◆ n64

bool coastline::Reflection::n64 = false

Use RSP texture generation and tile shifts instead of the PC coordinate conversion.


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