Skip to content

Instantly share code, notes, and snippets.

sequenceDiagram
    participant Main as main.c
    participant Graph as graph.c
    participant ZLib as z_game_dlftbls.c

    Main ->> Graph: start thread: Graph_ThreadEntry
    Graph ->> ZLib: get GAMESTATE_SETUP overlay
    Note over ZLib: The overlay table is defined in gamestate_table.h
@octopod-daydreamer
octopod-daydreamer / VAT.md
Created January 4, 2025 21:22 — forked from mikelyndon/VAT.md
Pseudo code and notes for generating a vertex animation texture for a fixed point count deforming geometry.

Vertex Animation Textures

Prerequisites

  • Normals
  • UVs

Create orient attribute (allows us to update normals in the vertex shader)

  • Create normal (N) attribute if missing
  • Create tangentu attribute (preferably MikkT)
  • Create matrix3 from N and tangentu
  • Convert matrix3 to orient attribute (quaternion)