def calcFullDuration(self, shaderInputs):
    self.duration = 0
    if ('duration' in shaderInputs):
        self.duration += shaderInputs['duration']
    if ('starDuration' in shaderInputs):
        self.duration += shaderInputs['starDuration']
def calcFullDuration(self, shaderInputs):
    self.duration = 0
    if ('duration' in shaderInputs):
        self.duration += shaderInputs['duration']
    if ('starDuration' in shaderInputs):
        self.duration += shaderInputs['starDuration']