![]() |
uPano
v3.1
|
Base class of pano renderers that have a single texture More...
Public Member Functions | |
override bool | CreateMesh () |
Creates panorama mesh More... | |
void | Download (string url) |
Download panorama by URL More... | |
void | Download (string lowresURL, string url) |
First, download a low-resolution panorama, then a full panorama. More... | |
abstract bool | GetPanTiltByUV (Vector2 uv, out float pan, out float tilt) |
Converts UV of the texture to pan and tilt More... | |
abstract Vector2 | GetUV (float pan, float tilt) |
Converts pan and tilt to UV of the texture 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... | |
Protected Member Functions | |
override void | UpdateShader () |
Updates material shader More... | |
Properties | |
Texture | texture [get, set] |
The texture of the panorama More... | |
Material | material [get, set] |
The material used to display the panorama More... | |
![]() | |
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... | |
![]() | |
Texture | texture [get, set] |
Gets and sets the texture of the panorama More... | |
Additional Inherited Members | |
![]() | |
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... | |
Base class of pano renderers that have a single texture
T |
T | : | SingleTexturePanoRenderer<T> |
|
virtual |
Creates panorama mesh
Reimplemented from InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.
void InfinityCode.uPano.Renderers.Base.SingleTexturePanoRenderer< T >.Download | ( | string | lowresURL, |
string | url | ||
) |
First, download a low-resolution panorama, then a full panorama.
lowresURL | URL of low-resolution panorama |
url | URL of full-resolution panorama |
Implements InfinityCode.uPano.Renderers.Base.ISingleTexturePanoRenderer.
void InfinityCode.uPano.Renderers.Base.SingleTexturePanoRenderer< T >.Download | ( | string | url | ) |
Download panorama by URL
url | URL of panorama |
Implements InfinityCode.uPano.Renderers.Base.ISingleTexturePanoRenderer.
|
pure virtual |
Converts UV of the texture to pan and tilt
uv | UV |
pan | Pan |
tilt | Tilt |
Implements InfinityCode.uPano.Renderers.Base.ISingleTexturePanoRenderer.
Implemented in InfinityCode.uPano.Renderers.SphericalPanoRenderer, InfinityCode.uPano.Renderers.SingleTextureCubeFacesPanoRenderer, and InfinityCode.uPano.Renderers.CylindricalPanoRenderer.
|
pure virtual |
Converts pan and tilt to UV of the texture
pan | Pan |
tilt | Tilt |
Implements InfinityCode.uPano.Renderers.Base.ISingleTexturePanoRenderer.
Implemented in InfinityCode.uPano.Renderers.SphericalPanoRenderer, InfinityCode.uPano.Renderers.SingleTextureCubeFacesPanoRenderer, and InfinityCode.uPano.Renderers.CylindricalPanoRenderer.
|
protectedvirtual |
Updates material shader
Reimplemented from InfinityCode.uPano.Renderers.Base.PanoRenderer< T >.
|
getset |
The material used to display the panorama
|
getset |
The texture of the panorama