Skip to content

Commit

Permalink
Preview spheres for 360 images (#687)
Browse files Browse the repository at this point in the history
* Preview spheres for 360 images

* Stop the title text wrapping (english/background images tab)

* Single pass support

* Sneak in a Rider package update

* Correctly de-init xr subsystems

* Update Rider plugin

* UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX

* Tweak m_ZAdjustHover so labels don't overlap spheres

* Formatting

* Use local normal instead of world normal for far texture on 360 previews

* Fix Advanced Tools panel initial position

* See if rotating the preview spheres fixes the quest shader bug (!?)
  • Loading branch information
andybak authored Apr 30, 2024
1 parent f9b66cd commit a419190
Show file tree
Hide file tree
Showing 8 changed files with 299 additions and 135 deletions.
89 changes: 89 additions & 0 deletions Assets/Materials/360 Panorama Sphere.mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 360 Panorama Sphere
m_Shader: {fileID: 4800000, guid: 2acb44a1aabdeb44ca27f9dd497c779a, type: 3}
m_ValidKeywords: []
m_InvalidKeywords:
- _STEREOSCOPIC_ON
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _H: 360
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Shininess: 20
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Stereoscopic: 1
- _UVSec: 0
- _V: 180
- _WarpEnd: 1
- _WarpStart: 6
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _WarpParams: {r: 6, g: 0.5, b: 0.3, a: 0.1}
m_BuildTextureStacks: []
8 changes: 8 additions & 0 deletions Assets/Materials/360 Panorama Sphere.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a419190

Please sign in to comment.