102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
normals.c File Reference

Go to the source code of this file.

Functions

static struct Math_Vec3I16 edge_between (struct Math_Vec3I16 end, struct Math_Vec3I16 start)
static uint32_t cross_length_squared_q12 (struct Math_Vec3I32 cross)
static struct Math_Vec3I16 unit_vector (struct Math_Vec3I32 vector, uint32_t length_squared_q12)
static struct Math_Vec3I16 face_normal (struct Math_Vec3I16 a, struct Math_Vec3I16 b)
static struct Math_Vec3I16 normalize_packed (struct Math_Vec3I16 vector)
static struct Math_Vec3I16 triangle_anchor (void)
void Mesh_CalculateVertexNormals (struct Graphics_Render_PolygonRenderRef *polygon_refs, int32_t polygon_count, struct Graphics_Render_SpriteVertexData *transformed_vertices, int32_t vertex_count)
void Bone_ComputeNormalsPostTransform (struct Bone_SkinningOwnerView *actor, struct Submesh_Entry *mesh_piece)

Function Documentation

◆ Bone_ComputeNormalsPostTransform()

void Bone_ComputeNormalsPostTransform ( struct Bone_SkinningOwnerView * actor,
struct Submesh_Entry * mesh_piece )

Definition at line 125 of file normals.c.

◆ cross_length_squared_q12()

uint32_t cross_length_squared_q12 ( struct Math_Vec3I32 cross)
static

Definition at line 20 of file normals.c.

◆ edge_between()

struct Math_Vec3I16 edge_between ( struct Math_Vec3I16 end,
struct Math_Vec3I16 start )
static

Definition at line 12 of file normals.c.

◆ face_normal()

struct Math_Vec3I16 face_normal ( struct Math_Vec3I16 a,
struct Math_Vec3I16 b )
static

Definition at line 39 of file normals.c.

◆ Mesh_CalculateVertexNormals()

void Mesh_CalculateVertexNormals ( struct Graphics_Render_PolygonRenderRef * polygon_refs,
int32_t polygon_count,
struct Graphics_Render_SpriteVertexData * transformed_vertices,
int32_t vertex_count )

Definition at line 77 of file normals.c.

◆ normalize_packed()

struct Math_Vec3I16 normalize_packed ( struct Math_Vec3I16 vector)
static

Definition at line 58 of file normals.c.

◆ triangle_anchor()

struct Math_Vec3I16 triangle_anchor ( void )
static

Definition at line 66 of file normals.c.

◆ unit_vector()

struct Math_Vec3I16 unit_vector ( struct Math_Vec3I32 vector,
uint32_t length_squared_q12 )
static

Definition at line 26 of file normals.c.