Skip to content

Commit

Permalink
change occlusion strength of '0' to mean no occlusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Kaile committed Jun 21, 2023
1 parent 2a5ac46 commit 140a1e2
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

### ? - ?

##### Fixes :wrench:

- Fixed how the occlusion strength is used in the default tileset shader which was causing shadows to be too dark.

### v1.3.1 - 2023-06-06

##### Fixes :wrench:
Expand Down
118 changes: 111 additions & 7 deletions Runtime/Resources/CesiumDefaultTilesetShader.shadergraph
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@
},
{
"m_Id": "747c0b2acec54979b802706fd6e3e982"
},
{
"m_Id": "dcf7466438e84ba5b015be66c3064baa"
}
],
"m_GroupDatas": [
Expand Down Expand Up @@ -1030,6 +1033,20 @@
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "dcf7466438e84ba5b015be66c3064baa"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b2c123c0474c47978bb44f2f78bd2770"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
Expand All @@ -1053,9 +1070,9 @@
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b2c123c0474c47978bb44f2f78bd2770"
"m_Id": "dcf7466438e84ba5b015be66c3064baa"
},
"m_SlotId": 1
"m_SlotId": 0
}
},
{
Expand Down Expand Up @@ -5500,6 +5517,30 @@
"m_Labels": []
}

{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "9529743426be4bb18f285a99d3fccff2",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}

{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
Expand Down Expand Up @@ -6407,9 +6448,9 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -27.9998779296875,
"x": 56.00002670288086,
"y": 2190.0,
"width": 125.9998550415039,
"width": 125.99996948242188,
"height": 118.0
}
},
Expand Down Expand Up @@ -6579,6 +6620,30 @@
"m_Labels": []
}

{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "b9a8497acbee4dd78c78d17c85a2a38d",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}

{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
Expand Down Expand Up @@ -7483,6 +7548,45 @@
}
}

{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.OneMinusNode",
"m_ObjectId": "dcf7466438e84ba5b015be66c3064baa",
"m_Group": {
"m_Id": "da5f26e4dc7649dbae635a3bcb0ac50b"
},
"m_Name": "One Minus",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -101.0,
"y": 2297.0,
"width": 128.0,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "b9a8497acbee4dd78c78d17c85a2a38d"
},
{
"m_Id": "9529743426be4bb18f285a99d3fccff2"
}
],
"synonyms": [
"complement",
"invert",
"opposite"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}

{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
Expand Down Expand Up @@ -7819,9 +7923,9 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -246.0000762939453,
"y": 2357.0,
"width": 170.0001983642578,
"x": -271.0,
"y": 2338.0,
"width": 170.0,
"height": 34.0
}
},
Expand Down

0 comments on commit 140a1e2

Please sign in to comment.