| 1039 | } |
| 1040 | |
| 1041 | Gs::Matrix4f ExampleBase::PerspectiveProjection(float aspectRatio, float near, float far, float fov) const |
| 1042 | { |
| 1043 | const bool isClipRangeUnitCube = (renderer->GetRenderingCaps().clippingRange == LLGL::ClippingRange::MinusOneToOne); |
| 1044 | int flags = (isClipRangeUnitCube ? Gs::ProjectionFlags::UnitCube : 0); |
| 1045 | return Gs::ProjectionMatrix4f::Perspective(aspectRatio, near, far, fov, flags).ToMatrix4(); |
| 1046 | } |
| 1047 | |
| 1048 | Gs::Matrix4f ExampleBase::OrthogonalProjection(float width, float height, float near, float far) const |
| 1049 | { |
no test coverage detected