Vixen
02b45cc4
csharp
public struct PunctualShadowTileData

One tile exactly as PunctualShadowTile in PunctualShadows.rvn declares it.

Read the guide page for this →

Remarks

Eighty bytes: a matrix and two pairs. The matrix already has the tile folded into it — see Tile — so a shading pass does one multiply and no per-tile arithmetic, and the scale and the offset are carried anyway because they are what lets the filter clamp its taps inside the tile they belong to.

Fields and properties (3)

  • public Matrix4x4 ViewProjection

    World to this tile's place in the atlas.

  • public Vector2 Scale

    How much of the atlas the tile is, as a fraction.

  • public Vector2 Offset

    Where it starts in the atlas, as a fraction.

Used by (1)

  • PunctualShadowRendererVixen.Rendering