Skip to content

imclab/unity-oblique-projection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

unity-oblique-projection

![screenshot] (https://github.com/keijiro/unity-oblique-projection/raw/gh-pages/screenshot.png)

This is a C# script which provides [an oblique projection matrix] (http://en.wikipedia.org/wiki/Oblique_projection) for an attached camera.

Usage

  1. Import ObliqueProjection.cs.
  2. Import ObliqueProjectionEditor.cs into the “Editor” directory.
  3. Attach ObliqueProjection to a camera.

There are three parameters in ObliqueProjection.

![inspector] (https://github.com/keijiro/unity-oblique-projection/raw/gh-pages/inspector.png)

  • Angle: the angle of the third axis.
  • Z Scale: the scale factor for the third axis.
  • Z Offset: the offset along the third axis. You can use this to compensate the position of the camera along the third axis.

For a detailed example, see [the test branch] (https://github.com/keijiro/unity-oblique-projection/tree/test).

About

Provides an oblique projection matrix for a camera.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published