Second version of DetailsPanel rework

improved layout
text now scrolls to top on beginning
models are now children of their camera to simplify getting a good view of them
increased render texture resolution and used a better blending function
This commit is contained in:
2018-09-20 14:46:11 +02:00
parent 24319b51a2
commit e9c7f03c30
7 changed files with 269 additions and 103 deletions

View File

@@ -8,13 +8,13 @@ Material:
m_PrefabInternal: {fileID: 0}
m_Name: ObjectCameraMaterial
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHATEST_ON
m_ShaderKeywords: _ALPHABLEND_ON
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2450
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: TransparentCutout
RenderType: Transparent
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
@@ -57,21 +57,21 @@ Material:
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 1
- _Cutoff: 0.301
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlend: 10
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 1
- _Mode: 2
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlend: 5
- _UVSec: 0
- _ZWrite: 1
- _ZWrite: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

View File

@@ -11,19 +11,19 @@ RenderTexture:
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
m_Width: 512
m_Height: 512
m_Width: 1024
m_Height: 1024
m_AntiAliasing: 1
m_DepthFormat: 2
m_ColorFormat: 0
m_MipMap: 0
m_MipMap: 1
m_GenerateMips: 1
m_SRGB: 1
m_UseDynamicScale: 1
m_BindMS: 0
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_FilterMode: 2
m_Aniso: 0
m_MipBias: 0
m_WrapU: 1