Example #1
0
        public ChannelData Render(CommandNode commandNode, TimeSpan commandTimeSpan, TimeSpan renderStartTime, TimeSpan renderTimeSpan)
        {
            // We're adding only the parameter values.
            ChannelData data = _effect.Render(commandNode.TargetNodes.ToArray(), commandTimeSpan, ParameterValues);

            // And then restricting by time.
            TimeSpan renderEndTime = renderStartTime + renderTimeSpan;

            data = ChannelData.Restrict(data, renderStartTime, renderEndTime);

            return(data);
        }