yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
c97166aed
master
1implementing fcpw; 2 3public struct Ray 4{ 5 public float3 o; // ray origin 6 public float3 d; // ray direction 7 public float3 dInv; // 1 over ray direction (coordinate-wise) 8 public float tMax; // max ray distance 9 10 // constructor 11 public __init(float3 o_, float3 d_, float tMax_) 12 { 13 o = o_; 14 d = d_; 15 dInv = float3(1.0, 1.0, 1.0) / d_; 16 tMax = tMax_; 17 } 18};