Closed shrekshao closed 1 year ago
https://github.com/greggman/wgpu-matrix/blob/main/src/mat4-impl.ts#L676 Now if zFar === Infinity it ends with NaN
zFar === Infinity
NaN
gl-matrix now handles infinity case explicitly: https://github.com/toji/gl-matrix/blob/master/src/mat4.js#L1601-L1608
added https://github.com/greggman/wgpu-matrix/commit/10c1fbc57d09059ebcae84798ed088ef2276d9bb
https://github.com/greggman/wgpu-matrix/blob/main/src/mat4-impl.ts#L676 Now if
zFar === Infinity
it ends withNaN
gl-matrix now handles infinity case explicitly: https://github.com/toji/gl-matrix/blob/master/src/mat4.js#L1601-L1608