public class GPUImageToonFilter extends GPUImage3x3TextureSamplingFilter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOON_FRAGMENT_SHADER |
THREE_X_THREE_TEXTURE_SAMPLING_VERTEX_SHADERNO_FILTER_FRAGMENT_SHADER, NO_FILTER_VERTEX_SHADER| Constructor and Description |
|---|
GPUImageToonFilter() |
GPUImageToonFilter(float threshold,
float quantizationLevels) |
| Modifier and Type | Method and Description |
|---|---|
void |
onInit() |
void |
onInitialized() |
void |
setQuantizationLevels(float quantizationLevels)
The levels of quantization for the posterization of colors within the scene, with a default of 10.0.
|
void |
setThreshold(float threshold)
The threshold at which to apply the edges, default of 0.2.
|
onOutputSizeChanged, setLineSize, setTexelHeight, setTexelWidthconvertStreamToString, destroy, getAttribPosition, getAttribTextureCoordinate, getOutputHeight, getOutputWidth, getProgram, getUniformTexture, ifNeedInit, isInitialized, loadShader, onDestroy, onDraw, onDrawArraysPre, runOnDraw, runPendingOnDrawTasks, setFloat, setFloatArray, setFloatVec2, setFloatVec3, setFloatVec4, setInteger, setPoint, setUniformMatrix3f, setUniformMatrix4fpublic static final java.lang.String TOON_FRAGMENT_SHADER
public GPUImageToonFilter()
public GPUImageToonFilter(float threshold,
float quantizationLevels)
public void onInit()
onInit in class GPUImage3x3TextureSamplingFilterpublic void onInitialized()
onInitialized in class GPUImage3x3TextureSamplingFilterpublic void setThreshold(float threshold)
threshold - default 0.2public void setQuantizationLevels(float quantizationLevels)
quantizationLevels - default 10.0