mickvangelderen / clustered-light-shading

Exploring stereoscopic rendering.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor mono/stereo

mickvangelderen opened this issue · comments

This duplication is bothering.

https://github.com/mickvangelderen/vr-lab/blob/wip/renderer/src/main.rs#L854-L1178

For monoscopic rendering there is no pose (camera base/character to head) or head_to_eye transforms. We could refactor the code to return identity matrices and an array of 1 eye for the mono case so we can do all the now duplicated stuff only once.

No longer relevant