Add clipping planes to the scene
This commit is contained in:
@@ -51,11 +51,21 @@ typedef struct {
|
||||
transform_t transform;
|
||||
} instance_t;
|
||||
|
||||
typedef struct {
|
||||
vec3f_t normal;
|
||||
f32 distance;
|
||||
} clipping_plane_t;
|
||||
|
||||
typedef struct {
|
||||
u64 instance_count;
|
||||
instance_t *instances;
|
||||
camera_t *camera;
|
||||
const mat3x4f_t *proj_matrix;
|
||||
clipping_plane_t near;
|
||||
clipping_plane_t left;
|
||||
clipping_plane_t right;
|
||||
clipping_plane_t bottom;
|
||||
clipping_plane_t top;
|
||||
} rasteriser_scene_t;
|
||||
|
||||
void render_scene(window_t *wnd, Arena *arena, const rasteriser_scene_t *scene);
|
||||
|
||||
Reference in New Issue
Block a user