csharp
public readonly struct BoxPostProcessShapeA box in an entity's own space, as a shape.
Remarks
⚠ A singular transform contains nothing rather than everything. A volume scaled to zero on an axis cannot be inverted, and of the two available answers the one that looks like the mistake it is beats the one that blacks out the level.
Fields and properties (1)
public Vector3 ExtentsHalf the box's size, in the entity's own space.
Methods (3)
public BoxPostProcessShape(in Matrix4x4 transform, Vector3 extents)Creates one.
public bool Contains(Vector3 world, out float distanceOutside)Whether a world-space point is inside, and how far outside it is when it is not.
public static float ExteriorDistance(Vector3 local, Vector3 extents)How far a point in the box's own space is outside its surface.
Used by (2)
- PostProcessVolumeVixen.Rendering
- PostProcessVolumeSystemVixen.Rendering