Skip to content

Commit 2c7a79f

Browse files
Marked BaseColor and BaseTexture as main properties to get rid of the error while using regular Material.color property. (#864)
1 parent 0471b14 commit 2c7a79f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Runtime/Shaders/ShaderGraph/PBRGraph.shadergraph

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22044,7 +22044,7 @@
2204422044
"b": 1.0,
2204522045
"a": 1.0
2204622046
},
22047-
"isMainColor": false,
22047+
"isMainColor": true,
2204822048
"m_ColorMode": 0
2204922049
}
2205022050

@@ -23067,7 +23067,7 @@
2306723067
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
2306823068
"m_Guid": ""
2306923069
},
23070-
"isMainTexture": false,
23070+
"isMainTexture": true,
2307123071
"useTilingAndOffset": true,
2307223072
"m_Modifiable": true,
2307323073
"m_DefaultType": 0

Runtime/Shaders/ShaderGraph/UnlitGraph.shadergraph

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@
15841584
"b": 1.0,
15851585
"a": 1.0
15861586
},
1587-
"isMainColor": false,
1587+
"isMainColor": true,
15881588
"m_ColorMode": 0
15891589
}
15901590

@@ -1617,7 +1617,7 @@
16171617
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
16181618
"m_Guid": ""
16191619
},
1620-
"isMainTexture": false,
1620+
"isMainTexture": true,
16211621
"useTilingAndOffset": true,
16221622
"m_Modifiable": true,
16231623
"m_DefaultType": 0

0 commit comments

Comments
 (0)