Esempio n. 1
0
 private static extern void Internal_setColorGradient(IntPtr thisPtr, string name, ColorGradient value, int arrayIdx);
Esempio n. 2
0
 /// <summary>
 /// Assigns a color gradient to the shader parameter with the specified name. The system will automatically evaluate the
 /// gradient with the passage of time and apply the evaluated value to the parameter.
 ///
 /// Optionally if the parameter is an array you may provide an array index to assign the value to.
 /// </summary>
 public void SetColorGradient(string name, ColorGradient value, int arrayIdx = 0)
 {
     Internal_setColorGradient(mCachedPtr, name, value, arrayIdx);
 }
Esempio n. 3
0
 private static extern void Internal_ColorGradient0(ColorGradient managedInstance, ref Color color);
Esempio n. 4
0
 private static extern void Internal_ColorGradient1(ColorGradient managedInstance, ColorGradientKey[] keys);
Esempio n. 5
0
 private static extern void Internal_ColorGradient(ColorGradient managedInstance);
Esempio n. 6
0
 /// <summary>Creates a new distribution that returns a random color in a range determined by two gradients.</summary>
 public ColorDistribution(ColorGradient minGradient, ColorGradient maxGradient)
 {
     Internal_TColorDistribution3(this, minGradient, maxGradient);
 }
Esempio n. 7
0
 /// <summary>Creates a new distribution that evaluates a color gradient.</summary>
 public ColorDistribution(ColorGradient gradient)
 {
     Internal_TColorDistribution2(this, gradient);
 }
Esempio n. 8
0
 private static extern void Internal_TColorDistribution3(ColorDistribution managedInstance, ColorGradient minGradient, ColorGradient maxGradient);
Esempio n. 9
0
 private static extern void Internal_TColorDistribution2(ColorDistribution managedInstance, ColorGradient gradient);