![]() |
uPano
v3.1
|
Base generic class of pano renderer More...
Public Member Functions | |
| virtual bool | CreateMesh () |
| Creates panorama mesh More... | |
| void | DestroyMesh () |
| Destroys panorama mesh More... | |
| bool | GetPanTiltByScreenPosition (float screenPosX, float screenPosY, out float pan, out float tilt) |
| Gets pan and tilt for the screen point More... | |
| bool | GetPanTiltByScreenPosition (Vector2 screenPoint, out float pan, out float tilt) |
| Gets pan and tilt for the screen point More... | |
| virtual void | GetPanTiltByWorldPosition (Vector3 worldPosition, out float pan, out float tilt) |
| Gets pan and tilt for the world position More... | |
| bool | GetPanTiltUnderCursor (out float pan, out float tilt) |
| Gets pan and tilt under cursor More... | |
| Vector3 | GetScreenPosition (float pan, float tilt, Camera cam=null) |
| Gets the screen position for pan and tilt More... | |
| abstract Vector3 | GetWorldPosition (float pan, float tilt) |
| Gets Unity World Position for pan and tilt More... | |
| virtual void | UpdateMesh () |
| Updates panorama mesh More... | |
| virtual void | UpdateRotation (Camera activeCamera, float pan, float tilt) |
| Updates the rotation More... | |
Public Attributes | |
| Action | OnStart |
| Action that occurs when the pano renderer is started More... | |
| Action | OnUpdate |
| Action that occurs when the mesh is updated More... | |
| bool | compressTextures = true |
| Compress textures to DXT format to reduce memory usage. More... | |
Protected Member Functions | |
| virtual void | UpdateShader () |
| Updates material shader More... | |
Properties | |
| Material | defaultMaterial [get, set] |
| The material that will be used to display the panorama More... | |
| virtual Shader | defaultShader [get] |
| Default shader of a pano renderer More... | |
| Pano | pano [get] |
| Reference to panorama More... | |
| GameObject | meshGameObject [get] |
| Reference to mesh GameObject More... | |
| Shader | shader [get, set] |
| The shader that will be used to display the panorama. If the material is specified, the shader will be ignored More... | |
Base generic class of pano renderer
Base class of pano renderer
| T |
| T | : | PanoRenderer<T> |
|
virtual |
Creates panorama mesh
Reimplemented in InfinityCode.uPano.Renderers.Base.SingleTexturePanoRenderer< T >, and InfinityCode.uPano.Renderers.Base.CubePanoRenderer< T >.
| void InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.DestroyMesh | ( | ) |
Destroys panorama mesh
| bool InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.GetPanTiltByScreenPosition | ( | float | screenPosX, |
| float | screenPosY, | ||
| out float | pan, | ||
| out float | tilt | ||
| ) |
Gets pan and tilt for the screen point
| screenPosX | Screen point X |
| screenPosY | Screen point Y |
| pan | Pan |
| tilt | Tilt |
| bool InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.GetPanTiltByScreenPosition | ( | Vector2 | screenPoint, |
| out float | pan, | ||
| out float | tilt | ||
| ) |
Gets pan and tilt for the screen point
| screenPoint | Screen point |
| pan | Pan |
| tilt | Tilt |
|
virtual |
Gets pan and tilt for the world position
| worldPosition | Position in Unity World Space |
| pan | Pan |
| tilt | Tilt |
| bool InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.GetPanTiltUnderCursor | ( | out float | pan, |
| out float | tilt | ||
| ) |
Gets pan and tilt under cursor
| pan | Pan |
| tilt | Tilt |
| Vector3 InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.GetScreenPosition | ( | float | pan, |
| float | tilt, | ||
| Camera | cam = null |
||
| ) |
Gets the screen position for pan and tilt
| pan | Pan |
| tilt | Tilt |
| cam | Camera |
|
pure virtual |
Gets Unity World Position for pan and tilt
| pan | Pan |
| tilt | Tilt |
Implemented in InfinityCode.uPano.Renderers.Base.CubePanoRenderer< T >.
|
virtual |
Updates panorama mesh
|
virtual |
Updates the rotation
| activeCamera | The camera used to display the panorama |
| pan | Pan |
| tilt | Tilt |
|
protectedvirtual |
Updates material shader
Reimplemented in InfinityCode.uPano.Renderers.Base.SingleTexturePanoRenderer< T >.
| bool InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.compressTextures = true |
Compress textures to DXT format to reduce memory usage.
| Action InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.OnStart |
Action that occurs when the pano renderer is started
| Action InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.OnUpdate |
Action that occurs when the mesh is updated
|
getset |
The material that will be used to display the panorama
|
get |
Default shader of a pano renderer
|
get |
Reference to mesh GameObject
|
get |
Reference to panorama
|
getset |
The shader that will be used to display the panorama. If the material is specified, the shader will be ignored