From 4dc1c94cbb7ae0d7a0896eaa42d83b418cac9677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E7=9C=8B?= <1918891542@qq.com> Date: Fri, 9 Sep 2022 04:07:42 +0800 Subject: [PATCH] Adjust Shader Param. --- Assets/Scenes/Version2.unity | 8 ++++---- Assets/Scripts/UmaViewerBuilder.cs | 10 +++++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Assets/Scenes/Version2.unity b/Assets/Scenes/Version2.unity index 4d31849..6e86bfd 100644 --- a/Assets/Scenes/Version2.unity +++ b/Assets/Scenes/Version2.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.4465778, g: 0.49641526, b: 0.5748185, a: 1} + m_IndirectSpecularColor: {r: 0.4366756, g: 0.48427194, b: 0.5645252, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -9571,7 +9571,7 @@ Light: serializedVersion: 10 m_Type: 1 m_Shape: 0 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Color: {r: 1, g: 0.972549, b: 0.8901961, a: 1} m_Intensity: 1 m_Range: 10 m_SpotAngle: 30 @@ -9629,13 +9629,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 926505643} - m_LocalRotation: {x: 0.27165377, y: -0.6942721, z: 0.32374436, w: 0.58256346} + m_LocalRotation: {x: 0.54167527, y: 0.45451945, z: -0.45451945, w: 0.54167527} m_LocalPosition: {x: 0, y: 3, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -100, z: 0} + m_LocalEulerAnglesHint: {x: 90, y: 80, z: 0} --- !u!1 &931406425 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/UmaViewerBuilder.cs b/Assets/Scripts/UmaViewerBuilder.cs index ea3b8ec..4111ec7 100644 --- a/Assets/Scripts/UmaViewerBuilder.cs +++ b/Assets/Scripts/UmaViewerBuilder.cs @@ -683,14 +683,18 @@ public class UmaViewerBuilder : MonoBehaviour { switch (m.shader.name) { + case "Gallop/3D/Chara/MultiplyCheek": + m.CopyPropertiesFromMaterial(TransMaterialCharas); + break; case "Gallop/3D/Chara/ToonFace/TSER": - m.SetFloat("_CylinderBlend", 0.5f); + m.SetFloat("_CylinderBlend", 0.25f); + m.SetColor("_RimColor", new Color(0, 0, 0, 0)); break; case "Gallop/3D/Chara/ToonEye/T": - m.SetFloat("_CylinderBlend", 0.5f); + m.SetFloat("_CylinderBlend", 0.25f); break; case "Gallop/3D/Chara/ToonHair/TSER": - m.SetFloat("_CylinderBlend", 0.5f); + m.SetFloat("_CylinderBlend", 0.25f); break; default: