coastline 0.0.4
Loading...
Searching...
No Matches
trackshadow.h
Go to the documentation of this file.
1#ifndef COASTLINE_TRACK_SHADOW_H
2#define COASTLINE_TRACK_SHADOW_H
3
5#include "common/track.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
20
30
40
50
59
68 s32 cornerValid[4],
69 s32 corner,
70 const ConvertedModelVertex *vertex,
71 f32 s,
72 f32 t,
73 const f32 vehicleMatrix[4][4]);
74
90 s32 cornerValid[4],
91 const ConvertedModelVertex *a,
92 const ConvertedModelVertex *b,
93 const ConvertedModelVertex *c,
94 const f32 vehicleMatrix[4][4]);
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif /* COASTLINE_TRACK_SHADOW_H */
A model vertex converted into the renderer's working format.
Definition convertedvertex.h:7
A model placed on the track.
Definition track.h:63
The track data a race loads below the program: its triangles and placed models, and the route the veh...
long double ShadowTextureDistanceLeft(const ConvertedModelVertex *vertex)
The signed distance from the left boundary of the shadow texture.
long double ShadowTextureDistanceBottom(const ConvertedModelVertex *vertex)
The signed distance from the bottom boundary of the shadow texture.
long double ShadowTextureDistanceTop(const ConvertedModelVertex *vertex)
The signed distance from the top boundary of the shadow texture.
void UpdateShadowCornerVertex(const TrackInstance *instance, ConvertedModelVertex quad[4], s32 cornerValid[4], s32 corner, const ConvertedModelVertex *vertex, f32 s, f32 t, const f32 vehicleMatrix[4][4])
Update a shadow corner for a closer vertex at most one unit above the vehicle frame.
void ProjectShadowTextureCoordinates(ConvertedModelVertex *vertex)
Set the texture coordinates of a shadow vertex with the current projection matrix.
void ProjectClippedShadowTriangle(const TrackInstance *instance, ConvertedModelVertex quad[4], s32 cornerValid[4], const ConvertedModelVertex *a, const ConvertedModelVertex *b, const ConvertedModelVertex *c, const f32 vehicleMatrix[4][4])
Clip a shadow triangle to its texture and update the covered corners of its vehicle quad.
long double ShadowTextureDistanceRight(const ConvertedModelVertex *vertex)
The signed distance from the right boundary of the shadow texture.
float f32
Definition ultratypes.h:38
int s32
Definition ultratypes.h:25