浏览代码

Add type colours for Boolean and Cubemap

Fixes #221
/main
Matt Dean 7 年前
当前提交
295b3e44
共有 1 个文件被更改,包括 27 次插入5 次删除
  1. 32
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraph.uss

32
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraph.uss


edge-color: #8FC1DF;
}
PortInputView.typeTexture2D > #container > #slot > #dot {
PortInputView.typeTexture2D > #container > #slot > #dot,
PortInputView.typeCubemap > #container > #slot > #dot {
PortInputView.typeTexture2D {
PortInputView.typeTexture2D,
PortInputView.typeCubemap {
edge-color: #FF8B8B;
}

PortInputView.typeVector1 {
edge-color: #84E4E7;
}
PortInputView.typeBoolean > #container > #slot > #dot {
background-color: #9481E6;
}
PortInputView.typeBoolean {
edge-color: #9481E6;
}
TextureSlotControlView {

edge-input-color: #8FC1DF;
}
.edge.fromTexture2D {
.edge.fromTexture2D, .edge.fromCubemap {
.edge.toTexture2D {
.edge.toTexture2D, .edge.toCubemap {
edge-input-color: #FF8B8B;
}

}
.edge.toVector1 {
edge-input-color: #84E4E7;
}
.edge.fromBoolean {
edge-output-color: #9481E6;
}
.edge.toBoolean {
edge-input-color: #9481E6;
}
GraphInspectorView {

port-color:#FF8B8B;
}
ShaderPort.typeCubemap {
/* Same as typeTexture */
port-color:#FF8B8B;
}
ShaderPort.typeGraphScript {
/* Todo: there is no such type in Unity atm */
port-color:#E681BA;

port-color:#9481E6;
}
ShaderPort.typeBool {
ShaderPort.typeBoolean {
port-color:#9481E6;
}

正在加载...
取消
保存