public class DepthShader extends DefaultShader
Modifier and Type | Class and Description |
---|---|
static class |
DepthShader.Config |
DefaultShader.Inputs, DefaultShader.Setters
BaseShader.Setter, BaseShader.Uniform, BaseShader.Validator
Modifier and Type | Field and Description |
---|---|
int |
numBones |
int |
weights |
ambientCubemap, defaultCullFace, defaultDepthFunc, directionalLights, dirLightsColorOffset, dirLightsDirectionOffset, dirLightsLoc, dirLightsSize, environmentCubemap, fog, ignoreUnimplemented, implementedFlags, lighting, pointLights, pointLightsColorOffset, pointLightsIntensityOffset, pointLightsLoc, pointLightsPositionOffset, pointLightsSize, shadowMap, u_alphaTest, u_ambientCubemap, u_bones, u_cameraDirection, u_cameraPosition, u_cameraUp, u_diffuseColor, u_diffuseTexture, u_dirLights0color, u_dirLights0direction, u_dirLights1color, u_emissiveColor, u_environmentCubemap, u_fogColor, u_normalMatrix, u_normalTexture, u_opacity, u_pointLights0color, u_pointLights0intensity, u_pointLights0position, u_pointLights1color, u_projTrans, u_projViewTrans, u_projViewWorldTrans, u_reflectionColor, u_shadowMapProjViewTrans, u_shadowPCFOffset, u_shadowTexture, u_shininess, u_specularColor, u_specularTexture, u_time, u_viewTrans, u_viewWorldTrans, u_worldTrans
context, program
Constructor and Description |
---|
DepthShader(Renderable renderable) |
DepthShader(Renderable renderable,
DepthShader.Config config) |
DepthShader(Renderable renderable,
DepthShader.Config config,
ShaderProgram shaderProgram) |
DepthShader(Renderable renderable,
DepthShader.Config config,
java.lang.String prefix) |
DepthShader(Renderable renderable,
DepthShader.Config config,
java.lang.String prefix,
java.lang.String vertexShader,
java.lang.String fragmentShader) |
Modifier and Type | Method and Description |
---|---|
void |
begin(Camera camera,
RenderContext context)
Initializes the context for exclusive rendering by this shader
|
boolean |
canRender(Renderable renderable)
Whether this shader is intended to render the
Renderable |
static java.lang.String |
createPrefix(Renderable renderable,
DepthShader.Config config) |
void |
end()
Cleanup the context so other shaders can render
|
static java.lang.String |
getDefaultFragmentShader() |
static java.lang.String |
getDefaultVertexShader() |
bindLights, bindMaterial, compareTo, createPrefix, dispose, equals, equals, init, render
public DepthShader(Renderable renderable)
public DepthShader(Renderable renderable, DepthShader.Config config)
public DepthShader(Renderable renderable, DepthShader.Config config, java.lang.String prefix)
public DepthShader(Renderable renderable, DepthShader.Config config, java.lang.String prefix, java.lang.String vertexShader, java.lang.String fragmentShader)
public DepthShader(Renderable renderable, DepthShader.Config config, ShaderProgram shaderProgram)
public static final java.lang.String getDefaultVertexShader()
public static final java.lang.String getDefaultFragmentShader()
public static java.lang.String createPrefix(Renderable renderable, DepthShader.Config config)
public void begin(Camera camera, RenderContext context)
Shader
begin
in interface Shader
begin
in class DefaultShader
public void end()
Shader
end
in interface Shader
end
in class DefaultShader
public boolean canRender(Renderable renderable)
Shader
Renderable
canRender
in interface Shader
canRender
in class DefaultShader