NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
nnl::shadow_collision Namespace Reference

Contains structures and functions for working with shadow "collisions" - geometry onto which fake planar or blob shadows are cast. More...

Classes

struct  Collision
 Struct that contains all necessary information for performing shadow projection. More...
struct  CollisionTest
 Struct representing a set of triangles to be tested for shadow projection. More...
struct  Triangle
 Struct defining a single triangle for projecting shadows onto it. More...

Functions

SModel Convert (const Collision &collision)
 Converts collision data from the in-game format to a simplified model representation.
Collision Convert (SModel &&smodel, bool auto_cull=true, u32 shift=1)
 Converts a simplified representation of a model to the in-game shadow collision format that is used for shadow projection.
bool IsOfType (BufferView buffer)
 Tests if the provided file is a shadow collision.
Collision Import (BufferView buffer)
 Parses a binary file and converts it to a structured collision.
Buffer Export (const Collision &collision)
 Converts a shadow collision config to a binary file representation.

Detailed Description

Contains structures and functions for working with shadow "collisions" - geometry onto which fake planar or blob shadows are cast.

See also
nnl::shadow_collision::Collision
nnl::shadow_collision::IsOfType
nnl::shadow_collision::Import
nnl::shadow_collision::Export
nnl::shadow_collision::Convert