public override string GenerateShaderForOutput(int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar) { string objectScale = m_rotationIndependentScale ? GeneratorUtils.GenerateRotationIndependentObjectScale(ref dataCollector, UniqueId): GeneratorUtils.GenerateObjectScale(ref dataCollector, UniqueId); return(GetOutputVectorItem(0, outputId, objectScale)); }
public override string GenerateShaderForOutput(int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar) { if (m_outputPorts[0].IsLocalValue) { return(GetOutputVectorItem(0, outputId, m_outputPorts[0].LocalValue)); } m_outputPorts[0].SetLocalValue(GeneratorUtils.GenerateObjectScale(ref dataCollector, UniqueId)); return(GetOutputVectorItem(0, outputId, m_outputPorts[0].LocalValue)); }