|
@@ -14,11 +14,11 @@ export class InputDisplayManager implements IDisplayManager {
|
|
|
let inputBlock = block as InputBlock;
|
|
|
|
|
|
if (inputBlock.isConstant) {
|
|
|
- return "constant"
|
|
|
+ return "constant";
|
|
|
}
|
|
|
|
|
|
if (inputBlock.visibleInInspector) {
|
|
|
- return "inspector"
|
|
|
+ return "inspector";
|
|
|
}
|
|
|
|
|
|
return "";
|
|
@@ -40,10 +40,10 @@ export class InputDisplayManager implements IDisplayManager {
|
|
|
}
|
|
|
|
|
|
public getBackgroundColor(block: NodeMaterialBlock): string {
|
|
|
- let color = "";
|
|
|
+ let color = "";
|
|
|
let inputBlock = block as InputBlock;
|
|
|
|
|
|
- switch (inputBlock.type) {
|
|
|
+ switch (inputBlock.type) {
|
|
|
case NodeMaterialBlockConnectionPointTypes.Color3:
|
|
|
case NodeMaterialBlockConnectionPointTypes.Color4: {
|
|
|
if (inputBlock.value) {
|
|
@@ -107,17 +107,17 @@ export class InputDisplayManager implements IDisplayManager {
|
|
|
}
|
|
|
break;
|
|
|
case NodeMaterialBlockConnectionPointTypes.Vector2:
|
|
|
- let vec2Value = inputBlock.value as Vector2
|
|
|
+ let vec2Value = inputBlock.value as Vector2;
|
|
|
value = `(${vec2Value.x.toFixed(2)}, ${vec2Value.y.toFixed(2)})`;
|
|
|
break;
|
|
|
case NodeMaterialBlockConnectionPointTypes.Vector3:
|
|
|
- let vec3Value = inputBlock.value as Vector3
|
|
|
+ let vec3Value = inputBlock.value as Vector3;
|
|
|
value = `(${vec3Value.x.toFixed(2)}, ${vec3Value.y.toFixed(2)}, ${vec3Value.z.toFixed(2)})`;
|
|
|
break;
|
|
|
case NodeMaterialBlockConnectionPointTypes.Vector4:
|
|
|
- let vec4Value = inputBlock.value as Vector4
|
|
|
+ let vec4Value = inputBlock.value as Vector4;
|
|
|
value = `(${vec4Value.x.toFixed(2)}, ${vec4Value.y.toFixed(2)}, ${vec4Value.z.toFixed(2)}, ${vec4Value.w.toFixed(2)})`;
|
|
|
- break;
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
|