shz_xmtrx_apply_perspective
SHZ_INLINE void shz_xmtrx_apply_perspective(float fov, float aspect, float znear) SHZ_NOEXCEPT;Multiplies and accumulates the perspective matrix constructed from the given values onto XMTRX.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
fov | float | |
aspect | float | |
znear | float |
Returns
Section titled “Returns”Nothing (void).
Details
Section titled “Details”| fr[n + 0] | fr[n + 4] | fr[n + 8] | fr[n + 12] |
|---|---|---|---|
| cot(f)/a | 0.0f | 0.0f | 0.0f |
| 0.0f | cot(f) | 0.0f | 0.0f |
| 0.0f | 0.0f | 0.0f | nz |
| 0.0f | 0.0f | -1.0f | 0.0f |
Availability
Section titled “Availability”- C++ equivalent:
shz::xmtrx::apply_perspective - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_xmtrx.h:532 - Module: XMTRX, section "Apply Operation"