1
0
mirror of synced 2025-01-18 15:24:04 +01:00

#37 better shader

This commit is contained in:
xpeng 2022-07-31 22:58:57 +02:00
parent 1126081c82
commit dff8c9410c
6 changed files with 1435 additions and 104 deletions

View File

@ -45,7 +45,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ Material:
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 6
m_EnableInstancingVariants: 0
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
@ -109,7 +109,7 @@ Material:
- _GlossyReflections: 1
- _LineCount: 8
- _LineEmitOpasity: 0.2
- _LineHight: 0.01
- _LineHight: 0.1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
@ -126,10 +126,12 @@ Material:
- _SrcBlend: 1
- _Surface: 0
- _UVSec: 0
- _Vignett: 0.4
- _VignettHardness: -0.15
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.4056604, g: 0.4056604, b: 0.4056604, a: 1}
- _BaseColor: {r: 0.2924528, g: 0.2924528, b: 0.2924528, a: 1}
- _Color: {r: 0.34905657, g: 0.34905657, b: 0.34905657, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _LineColor: {r: 0, g: 0, b: 0, a: 0}

View File

@ -21536,13 +21536,23 @@ PrefabInstance:
- target: {fileID: 393777075064552474, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_LocalScale.y
value: 1.02
value: 1.1
objectReference: {fileID: 0}
- target: {fileID: 393777075064552474, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_LocalScale.z
value: 1.02
objectReference: {fileID: 0}
- target: {fileID: 393777075064552474, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_LocalPosition.y
value: -0.00023
objectReference: {fileID: 0}
- target: {fileID: 393777075064552474, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_LocalPosition.z
value: 0.01269
objectReference: {fileID: 0}
- target: {fileID: 395471909685690544, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_CastShadows
@ -21618,6 +21628,16 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 672568126412091756, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_LocalPosition.y
value: -0.000031
objectReference: {fileID: 0}
- target: {fileID: 672568126412091756, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 674035908820035380, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_StaticEditorFlags
@ -23751,12 +23771,12 @@ PrefabInstance:
- target: {fileID: 6609493762104327279, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.00075
value: 0.000944
objectReference: {fileID: 0}
- target: {fileID: 6609493762104327279, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}
propertyPath: m_LocalPosition.z
value: 0.0121
value: 0.012048
objectReference: {fileID: 0}
- target: {fileID: 6618956848436274754, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3}

View File

@ -58,7 +58,9 @@ public class LightManager : MonoBehaviour
for (int ii = 0; ii < 4; ii++)
{
Materials[119 - i - ii * 30].SetColor("_EmissionColor", RGBColor2D.GetPixel(index * 2, 0));
Materials[119 - i - ii * 30].SetColor("_EmissionColor2", RGBColor2D.GetPixel(index * 2 + 1, 0));
Materials[210 + i - ii * 30].SetColor("_EmissionColor", RGBColor2D.GetPixel((index + 120) * 2, 0));
Materials[210 + i - ii * 30].SetColor("_EmissionColor2", RGBColor2D.GetPixel((index + 120) * 2 + 1, 0));
index++;
}
}

View File

@ -137,8 +137,6 @@ PlayerSettings:
bundleVersion: 0.1.1
preloadedAssets:
- {fileID: 11400000, guid: 74eeb7429f216ca45a7093c586513e98, type: 2}
- {fileID: -6348321304186183749, guid: 6460523340b221f4ea5611d2c011a26c, type: 2}
- {fileID: -6265376527240436808, guid: 5e2dc0db42cc5b3459a781fecb0b76f9, type: 2}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1