mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
using Brutal.Pointers;
|
||||
|
||||
namespace Brutal.MeshOptimizer
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
||||
public unsafe partial struct MeshOptBounds
|
||||
{
|
||||
/// bounding sphere, useful for frustum and occlusion culling
|
||||
[FieldOffset(0)]
|
||||
public float3 Center;
|
||||
|
||||
[FieldOffset(12)]
|
||||
public float Radius;
|
||||
|
||||
/// normal cone, useful for backface culling
|
||||
[FieldOffset(16)]
|
||||
public float3 ConeApex;
|
||||
|
||||
[FieldOffset(28)]
|
||||
public float3 ConeAxis;
|
||||
|
||||
/// = cos(angle/2)
|
||||
[FieldOffset(40)]
|
||||
public float ConeCutoff;
|
||||
|
||||
/// normal cone axis and cutoff, stored in 8-bit SNORM format; decode using x/127.0
|
||||
[FieldOffset(44)]
|
||||
public byte3 ConeAxisS8;
|
||||
|
||||
[FieldOffset(47)]
|
||||
public byte ConeCutoffS8;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue