完善材质inspector
This commit is contained in:
parent
e495d2d5ff
commit
cdac6bf71a
@ -19,16 +19,17 @@ CCEffect %{
|
|||||||
# 发光颜色
|
# 发光颜色
|
||||||
glowColor: {
|
glowColor: {
|
||||||
value: [1.0, 1.0, 0.0, 1.0],
|
value: [1.0, 1.0, 0.0, 1.0],
|
||||||
editor: {
|
inspector: {
|
||||||
type: color,
|
type: color,
|
||||||
displayName: "发光颜色"
|
tooltip: "发光颜色"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# 发光宽度
|
# 发光宽度
|
||||||
glowColorSize: {
|
glowColorSize: {
|
||||||
value: 0.01,
|
value: 0.01,
|
||||||
editor: {
|
inspector: {
|
||||||
displayName: "发光宽度(百分比)"
|
tooltip: "发光宽度",
|
||||||
|
range: [0.0, 1.0],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# 发光透明度阈值
|
# 发光透明度阈值
|
||||||
@ -36,8 +37,9 @@ CCEffect %{
|
|||||||
# 一般用于解决图像边缘存在渐变透明的时,决定超过这个透明度阈值的边缘点才点发光,具体可以操作一下
|
# 一般用于解决图像边缘存在渐变透明的时,决定超过这个透明度阈值的边缘点才点发光,具体可以操作一下
|
||||||
glowThreshold: {
|
glowThreshold: {
|
||||||
value: 0.1,
|
value: 0.1,
|
||||||
editor: {
|
inspector: {
|
||||||
displayName: "发光阈值(百分比)"
|
tooltip: "发光阈值",
|
||||||
|
range: [0.0, 1.0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}%
|
}%
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
"_props": {
|
"_props": {
|
||||||
"texture": null,
|
"texture": null,
|
||||||
"glowColor": {
|
"glowColor": {
|
||||||
"__type__": "cc.Vec4",
|
"__type__": "cc.Color",
|
||||||
"x": 1,
|
"r": 255,
|
||||||
"y": 0,
|
"g": 0,
|
||||||
"z": 0,
|
"b": 0,
|
||||||
"w": 1
|
"a": 255
|
||||||
},
|
},
|
||||||
"glowColorSize": 0.2,
|
"glowColorSize": 0.2,
|
||||||
"glowThreshold": 0.1
|
"glowThreshold": 0.1
|
||||||
|
Loading…
Reference in New Issue
Block a user