Exposed Ortho fields as public
This commit is contained in:
parent
6bc43c7738
commit
c20350336e
1 changed files with 6 additions and 3 deletions
|
@ -145,9 +145,12 @@ impl<S: BaseFloat, A: Angle<S>> ToMatrix4<S> for PerspectiveFov<S, A> {
|
||||||
/// A perspective projection with arbitrary left/right/bottom/top distances
|
/// A perspective projection with arbitrary left/right/bottom/top distances
|
||||||
#[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable)]
|
#[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable)]
|
||||||
pub struct Perspective<S> {
|
pub struct Perspective<S> {
|
||||||
pub left: S, right: S,
|
pub left: S,
|
||||||
pub bottom: S, top: S,
|
pub right: S,
|
||||||
pub near: S, far: S,
|
pub bottom: S,
|
||||||
|
pub top: S,
|
||||||
|
pub near: S,
|
||||||
|
pub far: S,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<S: BaseFloat + 'static> Projection<S> for Perspective<S> {
|
impl<S: BaseFloat + 'static> Projection<S> for Perspective<S> {
|
||||||
|
|
Loading…
Reference in a new issue