vm6502q / OpenRelativity

An open source framework to add the effects of traveling at relativistic speeds to visualizations or games
17 stars 2 forks source link

Point-light red/blue shift fix #24

Closed WrathfulSpatula closed 4 years ago

WrathfulSpatula commented 4 years ago

Point lights are handled in the fragment shader, and these need similar red/blue shifts to the previous PR. Interpolating the metric tensor, unfortunately, is somewhat limited by the capacities of the shader pipeline. However, hopefully, we can get close enough to theoretically correct this way, for a video game.