Accounting for waves when doing planar reflections
- by CloseReflector
I've been studying Nvidia's examples from the SDK, in particular the Island11 project and I've found something curious about a piece of HLSL code which corrects the reflections up and down depending on the state of the wave's height.
Naturally, after examining the brief paragraph of code:
// calculating correction that shifts reflection up/down…