Beispiel #1
0
 public MaterialFloat(string nName, float startingValue, float startingSpeed = 1, Renderer renderer = null,
                      Material m = null) : base(startingSpeed, m, renderer)
 {
     _property   = new ShaderProperty.FloatValue(nName);
     targetValue = startingValue;
     Value       = startingValue;
 }
Beispiel #2
0
 protected BaseMaterialTextureTransition()
 {
     transitionProperty           = CustomShaderParameters.TransitionPortion;
     currentTexturePrTextureValue = CustomShaderParameters.CurrentTexture;
     nextTexturePrTextureValue    = CustomShaderParameters.NextTexture;
 }