TheVaffel / spatiotemporal-variance-guided-filtering

A simple implementation of the Spatiotemporal Variance-Guided Filtering (SVGF) algorithm by Schied. et al
37 stars 4 forks source link

inverse_perspective_matrix is undefined #1

Open T-igra opened 3 years ago

T-igra commented 3 years ago

I'm trying to port to Windows. In VS 2019, I get a compilation error: 'identifier "inverse_perspective_matrix" is undefined'.

glm::mat4 curr_view_matrix = (*(glm::mat4*)inverse_perspective_matrix) * (*(glm::mat4*)(&camera_matrices[frame][0][0]));

T-igra commented 3 years ago

I found a solution. glm::mat4 curr_view_matrix = (glm::mat4)(1.0f) * (glm::mat4)(camera_matrices[frame][0][0]);

nailtu30 commented 2 months ago

I found a solution. glm::mat4 curr_view_matrix = (glm::mat4)(1.0f) * (glm::mat4)(camera_matrices[frame][0][0]);

Thanks bro! It works a lot.