2D Ray Tracing Engine v0.4.1 has been released.
This update is for optimization purposes.
•Added object pool, it creates a ray once, then updates it to new position, creating and destroying objects thousands of times per second is heavy.
•Localizing global functions, finding global functions (math.sin, tostring, math.atan2, wtc.) is heavy too.
•Fixed a bug that calls main function lots of times if main function is too heavy to calculate.
•Added a warning at 8k rays, the game crashes (castle limit ig).
2D Ray Tracing Engine v0.4 has been released.
Added:
• New light sources (Single ray, area, point and spot)
• Ray thickness, in "Light Source Settings" button.
Improved:
• Shader models now are custom for each shape, instead for a global shader.
Replaced:
• Ray Marching mode was replaced by "Point" light source.
• White -> Dark theme
Fixed:
• Glass ray not working
• Broken secondary glass ray angle at 0 IOR
What's next:
• Light dispersion in glass rays
• Diffuse rays
• Triangle shape
Support my deck by reacting to motivate me :3