|
|
|
|
|
|
if (inputSlot == null) |
|
|
|
return string.Empty; |
|
|
|
|
|
|
|
string sufix = ""; |
|
|
|
|
|
|
|
var edges = owner.GetEdges(inputSlot.slotReference).ToArray(); |
|
|
|
|
|
|
|
if (edges.Any()) |
|
|
|
|
|
|
if (slot == null) |
|
|
|
return string.Empty; |
|
|
|
|
|
|
|
if (slot.concreteValueType == ConcreteSlotValueType.sampler2D) |
|
|
|
sufix += "_Uniform"; |
|
|
|
return ShaderGenerator.AdaptNodeOutput(fromNode, slot.id, slot.concreteValueType) + sufix; |
|
|
|
return ShaderGenerator.AdaptNodeOutput(fromNode, slot.id, slot.concreteValueType); |
|
|
|
if (inputSlot.concreteValueType == ConcreteSlotValueType.sampler2D) |
|
|
|
sufix += "_Uniform"; |
|
|
|
return inputSlot.GetDefaultValue(generationMode) + sufix; |
|
|
|
return inputSlot.GetDefaultValue(generationMode); |
|
|
|
} |
|
|
|
|
|
|
|
private ConcreteSlotValueType FindCommonChannelType(ConcreteSlotValueType from, ConcreteSlotValueType to) |
|
|
|