Removing more debugging code

This commit is contained in:
Dynamitos
2024-10-21 22:12:50 +02:00
parent f1316eb213
commit bbb774d9df
4 changed files with 55 additions and 5 deletions
@@ -34,12 +34,27 @@ class RenderPass {
struct Frustum {
Plane planes[4];
};
Plane computePlane(Vector p0, Vector p1, Vector p2) {
Plane plane;
Vector v0 = p1 - p0;
Vector v2 = p2 - p0;
plane.n = normalize(cross(v0, v2));
plane.d = dot(plane.n, p0);
return plane;
}
struct ViewParameter {
Frustum viewFrustum;
Matrix4 viewMatrix;
Matrix4 inverseViewMatrix;
Matrix4 projectionMatrix;
Matrix4 inverseProjection;
Matrix4 viewProjectionMatrix;
Matrix4 inverseViewProjectionMatrix;
Vector4 cameraPosition_WS;
Vector4 cameraForward_WS;
Vector2 screenDimensions;