NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
shadow_collision.hpp File Reference

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

Go to the source code of this file.

Classes

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

Namespaces

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

Functions

SModel nnl::shadow_collision::Convert (const Collision &collision)
 Converts collision data from the in-game format to a simplified model representation.
Collision nnl::shadow_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 nnl::shadow_collision::IsOfType (BufferView buffer)
 Tests if the provided file is a shadow collision.
Collision nnl::shadow_collision::Import (BufferView buffer)
 Parses a binary file and converts it to a structured collision.
Buffer nnl::shadow_collision::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