electronicarts / gigi

A framework for rapid prototyping and development of real-time rendering techniques.
Other
549 stars 24 forks source link

added Prev variables for camera, view proj and inv view proj matrices. #6

Closed bitnenfer closed 6 days ago

bitnenfer commented 6 days ago

Sorry. I made an incorrect PR.

Atrix256 commented 5 days ago

No problem. This is a good feature, so looking forward to the PR you meant to make.

Right now I get these matrices by making a variable for each, and having a "Set Variable" entry to set them at the end of every frame, so that next frame they have the previous frame's values. Being able to not do that would be convenient for the viewer.

In generated code, the host code will have to deal with this manually, instead of the technique dealing with it, which might be less convenient there, but people can always do it the other way I mentioned, if they prefer, so this seems like a good change.