Ben Sims (@bensimstech) 's Twitter Profile
Ben Sims

@bensimstech

Senior Game Programmer. Graphics/C++/C#/Shaders/Unity/Unreal/PC/Console/cats.
github.com/arycama
arycama.bsky.social

ID: 746320821648424960

linkhttps://github.com/arycama calendar_today24-06-2016 12:35:24

2,2K Tweet

2,2K Followers

1,1K Following

Ben Sims (@bensimstech) 's Twitter Profile Photo

Does anyone know of a nice method for a random vector in an elliptical cone? I have this nice method for a uniform cone. (No inv trig etc) Trying to find an elliptical method that actually works and uses inv trig is proving difficult. Or do I need to learn some new cursed math?

Does anyone know of a nice method for a random vector in an elliptical cone? I have this nice method for a uniform cone. (No inv trig etc) Trying to find an elliptical method that actually works and uses inv trig is proving difficult. Or do I need to learn some new cursed math?
Ben Sims (@bensimstech) 's Twitter Profile Photo

Alright, think I actually figured it out? Results look quite uniform even with very high angles. Tried writing some tests for uniformity but couldn't quite get them working, but it passes the visual test I think? Still a bit more instructions than I'd like, but probably alright.

Alright, think I actually figured it out? Results look quite uniform even with very high angles. Tried writing some tests for uniformity but couldn't quite get them working, but it passes the visual test I think? Still a bit more instructions than I'd like, but probably alright.
Ben Sims (@bensimstech) 's Twitter Profile Photo

Shaders are fun. Sky+lightrays rendered together with 1 sample per pixel+temporal with importance sampling) Clouds+sky integrate with ambient probe and aerial perspective so environment light is cohesive. End result is quite nice, only change between these pics is sun+view angle

Shaders are fun. Sky+lightrays rendered together with 1 sample per pixel+temporal with importance sampling) Clouds+sky integrate with ambient probe and aerial perspective so environment light is cohesive. 
End result is quite nice, only change between these pics is sun+view angle
Ben Sims (@bensimstech) 's Twitter Profile Photo

Ooh this would have been super useful for when this caused missing triangles on very specific AMD GCN architecture drivers but nowhere else, I still don't remember exactly why, something to do with terrain depth prepass not perfectly matching the shading pass along triangle edges