public class GLSLShadowInjector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NORMAL_SHADOWS
Shadow mode for normal, blocky shadows with no filtering
|
static int |
NORMAL_SHADOWS_WITH_EDGE_SMOOTHING
Shadow mode for normal, blocky shadows which fade out at the edges of the
shadow map.
|
static int |
PCF_FILTERED_SHADOWS
Shadow mode for filtered shadows, which are less blocky but slower.
|
static int |
PCF_FILTERED_SHADOWS_WITH_EDGE_SMOOTHING
Shadow mode for filtered shadows + edge smoothing.
|
Constructor and Description |
---|
GLSLShadowInjector() |
Modifier and Type | Method and Description |
---|---|
static int |
getShadowMode()
Returns the engine's current shadow mode.
|
static GLSLShader |
injectShadowCode(GLSLShader sourceShader)
Tries to inject shadow mapping code into a GLSLShader.
|
static void |
setShadowMode(int mode)
Sets the shadow mode.
|
public static final int NORMAL_SHADOWS
public static final int NORMAL_SHADOWS_WITH_EDGE_SMOOTHING
public static final int PCF_FILTERED_SHADOWS
public static final int PCF_FILTERED_SHADOWS_WITH_EDGE_SMOOTHING
public static void setShadowMode(int mode)
mode
- the mode.public static int getShadowMode()
public static GLSLShader injectShadowCode(GLSLShader sourceShader)
sourceShader
- the source shader