예제 #1
0
 public void Interpolate(float currentTime, UniformCommand command)
 {
     if (null == command) return;
     foreach (KeyValuePair<string, KeyFrames> item in uniforms)
     {
         var value = item.Value.Interpolate(currentTime);
         command(item.Key, value);
     }
 }
예제 #2
0
 public void Interpolate(float currentTime, UniformCommand command)
 {
     if (ReferenceEquals(null, command))
     {
         return;
     }
     foreach (KeyValuePair <string, KeyFrames> item in uniforms)
     {
         var value = item.Value.Interpolate(currentTime);
         command(item.Key, value);
     }
 }