Struct Rubikon.RayTraceContext ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Precomputed ray direction data for accelerated ray tracing.
csharp
public readonly struct Rubikon.RayTraceContextConstructors ​
RayTraceContext(Vector3, Vector3) ​
Initializes a new ray trace context from start and end positions.
csharp
public RayTraceContext(Vector3 start, Vector3 end)Parameters ​
start Vector3
Ray start position.
end Vector3
Ray end position.
Properties ​
Direction ​
Gets the normalized ray direction.
csharp
public Vector3 Direction { get; }Property Value ​
EndPosition ​
Gets the ray end position.
csharp
public Vector3 EndPosition { get; }Property Value ​
InvDirection ​
Gets the component-wise reciprocal of for slab-method AABB tests.
csharp
public Vector3 InvDirection { get; }Property Value ​
Length ​
Gets the ray length.
csharp
public float Length { get; }Property Value ​
Origin ​
Gets the ray start position.
csharp
public Vector3 Origin { get; }
