Skip to content

Commit

Permalink
fix: eye and lip color changes with time of day (#1861)
Browse files Browse the repository at this point in the history
* envLightingMultiplier = 4.0 to match MetaLighting on DCL/Toon shader

* Default Facial mask texture changed from White to Black

---------

Co-authored-by: Juan Ignacio Molteni <[email protected]>
  • Loading branch information
GBirch33 and dalkia authored Aug 27, 2024
1 parent 5446349 commit af51452
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ half4 UniversalFragmentBlinnPhong_FacialFeatures(InputData inputData, SurfaceDat

MixRealtimeAndBakedGI(mainLight, inputData.normalWS, inputData.bakedGI, aoFactor);

half envLightingMultiplier = 4.0; // To match MetaLighting on DCL/Toon shader
inputData.bakedGI *= envLightingMultiplier;
inputData.bakedGI *= surfaceData.albedo;

LightingData lightingData = CreateLightingData(inputData, surfaceData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Shader "DCL/DCL_Avatar_Facial_Features"
// Shader Stages
#pragma vertex LitPassVertexSimple
#pragma fragment LitPassFragmentSimple
#pragma enable_d3d11_debug_symbols
//#pragma enable_d3d11_debug_symbols

// -------------------------------------
// Material Keywords
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ MonoBehaviour:
m_SubObjectType:
m_EditorAssetChanged: 0
<DefaultMask256>k__BackingField:
m_AssetGUID: b0989591ebd3293419eece13d705a1e3
m_AssetGUID: 6bdb4b9ae9bf04745acee14bf4c684e1
m_SubObjectName:
m_SubObjectType:
m_EditorAssetChanged: 0
<DefaultMask512>k__BackingField:
m_AssetGUID: b7201c2efeb480b4293d5baae77973d6
m_AssetGUID: f3fd7329d073f964aaec82eb9acc9ed3
m_SubObjectName:
m_SubObjectType:
m_EditorAssetChanged: 0
Expand Down

0 comments on commit af51452

Please sign in to comment.