Epok Engine

EPOK RUNTIME

epok::lighting_detail::mesh_shade_local

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function

Lit face whose normal is already in the space of the GTE light matrix (see LightingRenderer::localize).

Belongs to
epok::lighting_detail
Header
lighting.hpp
Overloads
1

Declaration

Declaration
inline psyqo::Color mesh_shade_local(const int16_t* normal, const Material& face_material, const Material& tint)

Lit face whose normal is already in the space of the GTE light matrix (see LightingRenderer::localize).

ParameterTypeMeaning
normalconst int16_t *Not documented; consult the linked header.
face_materialconst Material &Not documented; consult the linked header.
tintconst Material &Not documented; consult the linked header.

Returns: psyqo::Color. Consult the linked header for its meaning.

Example sketch

C++ example
#include "lighting.hpp"

// Assume these named values have been initialized with valid data:
// const int16_t * normal
// const Material & face_material
// const Material & tint

auto result = epok::lighting_detail::mesh_shade_local(normal, face_material, tint);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/lighting.hpp:92

Related members