Class Gradient2DShader

java.lang.Object
icyllis.arc3d.core.shaders.GradientShader
icyllis.arc3d.core.shaders.Gradient2DShader
All Implemented Interfaces:
RefCounted, Shader
Direct Known Subclasses:
BilinearGradient

public abstract sealed class Gradient2DShader extends GradientShader permits BilinearGradient
Base class for gradient colors that can be represented by a 2D function, it generates two parameters for interpolation:
grad_layout(x,y) -> vec2
Such as bilinear gradient (rectangular), polar gradient.
  • Constructor Details

    • Gradient2DShader

      public Gradient2DShader()