|
|
|
|
|
|
AddSlot(new CubemapMaterialSlot(OutputSlotId, "Out", "Out", SlotType.Output)); |
|
|
|
RemoveSlotsNameNotMatching(new[] { OutputSlotId }); |
|
|
|
} |
|
|
|
else if (property is BooleanShaderProperty) |
|
|
|
{ |
|
|
|
AddSlot(new BooleanMaterialSlot(OutputSlotId, "Out", "Out", SlotType.Output, false)); |
|
|
|
RemoveSlotsNameNotMatching(new[] { OutputSlotId }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void GenerateNodeCode(ShaderGenerator visitor, GenerationMode generationMode) |
|
|
|
|
|
|
else if (property is ColorShaderProperty) |
|
|
|
{ |
|
|
|
var result = string.Format("{0}4 {1} = {2};" |
|
|
|
, precision |
|
|
|
, GetVariableNameForSlot(OutputSlotId) |
|
|
|
, property.referenceName); |
|
|
|
visitor.AddShaderChunk(result, true); |
|
|
|
} |
|
|
|
else if (property is BooleanShaderProperty) |
|
|
|
{ |
|
|
|
var result = string.Format("{0} {1} = {2};" |
|
|
|
, precision |
|
|
|
, GetVariableNameForSlot(OutputSlotId) |
|
|
|
, property.referenceName); |
|
|
|