public class BoxShadowState extends BoxBlurState
BoxBlurState
class for defining the kernel and simply stores
additional shadowColor
and spread
properties for the
associated support methods for the shadow version of the shader.Modifier and Type | Field and Description |
---|---|
private Color4f |
shadowColor |
private float |
spread |
Constructor and Description |
---|
BoxShadowState() |
Modifier and Type | Method and Description |
---|---|
Color4f |
getShadowColor() |
float |
getSpread() |
boolean |
isNop()
Returns true if the entire operation of this linear convolution
would have no effect on the source data.
|
boolean |
isShadow()
Returns true if this is a LinearConvolveShadow operation, or false
if the operation is a regular LinearConvolve.
|
void |
setShadowColor(Color4f shadowColor) |
void |
setSpread(float spread) |
getBlurPasses, getHsize, getKernelSize, getRenderState, getVsize, setBlurPasses, setHsize, setVsize
getResultBounds
private Color4f shadowColor
private float spread
public Color4f getShadowColor()
getShadowColor
in class BoxBlurState
public void setShadowColor(Color4f shadowColor)
public float getSpread()
getSpread
in class BoxBlurState
public void setSpread(float spread)
public boolean isNop()
LinearConvolveKernel
isNop
in class BoxBlurState
public boolean isShadow()
LinearConvolveKernel
isShadow
in class LinearConvolveKernel