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));
        }
Exemplo n.º 2
0
 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));
 }