Package icyllis.arc3d.sketch.shaders
Class Gradient2DShader
java.lang.Object
icyllis.arc3d.sketch.shaders.GradientShader
icyllis.arc3d.sketch.shaders.Gradient2DShader
- All Implemented Interfaces:
RefCounted
,Shader
- Direct Known Subclasses:
BilinearGradient
Base class for gradient colors that can be represented by a 2D function,
it generates two parameters for interpolation:
grad_layout(x,y) -> vec2Such as bilinear gradient (rectangular), polar gradient.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.sketch.shaders.GradientShader
GradientShader.Interpolation
-
Field Summary
Fields inherited from class icyllis.arc3d.sketch.shaders.GradientShader
kDegenerateTolerance
Fields inherited from interface icyllis.arc3d.sketch.shaders.Shader
LOCAL_MATRIX_AFTER, LOCAL_MATRIX_BEFORE, LOCAL_MATRIX_REPLACE, TILE_MODE_CLAMP, TILE_MODE_DECAL, TILE_MODE_MIRROR, TILE_MODE_REPEAT
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface icyllis.arc3d.sketch.shaders.Shader
isOpaque, isTriviallyCounted, makeWithLocalMatrix, ref, unref
-
Constructor Details
-
Gradient2DShader
public Gradient2DShader()
-