ray and ellipsoid intersection accuracy improvement
ray and ellipsoid intersection accuracy improvement
ray and ellipsoid intersection accuracy improvement
NO! Never do this! When declaring UBOs/SSBOs, pretend that all 3-element vector types don’t exist. This includes column-major matrices with 3 rows or row-major matrices with 3 columns. Pretend that the only types are scalars, 2, and 4 element vectors (and matrices). You will save yourself a very great deal of grief if you do … Read more
I manage to convert back-raytracing to iterative process suitable for GLSL with the method suggested in my comment. It is far from optimized and I do not have all the physical stuff implemented (no Snell’s law etc …) yet but as a proof of concept it works already. I do all the stuff in fragment … Read more