Package icyllis.arc3d.core.shaders
Class GradientShader
java.lang.Object
icyllis.arc3d.core.shaders.GradientShader
- All Implemented Interfaces:
RefCounted,Shader
- Direct Known Subclasses:
Gradient1DShader,Gradient2DShader
public abstract sealed class GradientShader
extends Object
implements Shader
permits Gradient1DShader, Gradient2DShader
Base class for shaders that generate gradient colors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classColor interpolation method, is packed into an int. -
Field Summary
FieldsFields inherited from interface icyllis.arc3d.core.shaders.Shader
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, waitMethods inherited from interface icyllis.arc3d.core.shaders.Shader
isOpaque, makeWithLocalMatrix
-
Field Details
-
kDegenerateTolerance
public static final float kDegenerateTolerance- See Also:
-
-
Constructor Details
-
GradientShader
public GradientShader()
-
-
Method Details
-
ref
public void ref()Description copied from interface:RefCountedIncreases the reference count by 1.- Specified by:
refin interfaceRefCounted
-
unref
public void unref()Description copied from interface:RefCountedDecreases the reference count by 1.- Specified by:
unrefin interfaceRefCounted
-