Sets up a custom clipping plane - g3_StartFrame must be called before this is called
| 374 | |
| 375 | // Sets up a custom clipping plane - g3_StartFrame must be called before this is called |
| 376 | void g3_SetCustomClipPlane(uint8_t state, vector *pnt, vector *normal) { |
| 377 | Clip_custom = state; |
| 378 | if (state) { |
| 379 | vector tempv; |
| 380 | vector norm = *normal; |
| 381 | |
| 382 | tempv = *pnt - View_position; |
| 383 | Clip_plane_point = tempv * View_matrix; |
| 384 | |
| 385 | Clip_plane = norm * Unscaled_matrix; // View_matrix; |
| 386 | vm_NormalizeVector(&Clip_plane); |
| 387 | } |
| 388 | } |
no test coverage detected