Package icyllis.arc3d.core.shaders
Class Gradient2DShader
java.lang.Object
icyllis.arc3d.core.shaders.GradientShader
icyllis.arc3d.core.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.core.shaders.GradientShader
GradientShader.Interpolation
-
Field Summary
Fields inherited from class icyllis.arc3d.core.shaders.GradientShader
kDegenerateTolerance
Fields inherited from interface icyllis.arc3d.core.shaders.Shader
TILE_MODE_CLAMP, TILE_MODE_DECAL, TILE_MODE_MIRROR, TILE_MODE_REPEAT
-
Constructor Summary
-
Method Summary
Methods inherited from class icyllis.arc3d.core.shaders.GradientShader
ref, unref
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface icyllis.arc3d.core.shaders.Shader
isOpaque, makeWithLocalMatrix
-
Constructor Details
-
Gradient2DShader
public Gradient2DShader()
-