public class PBRShader
extends com.badlogic.gdx.graphics.g3d.shaders.DefaultShader
com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.Config, com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.Inputs, com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.Setterscom.badlogic.gdx.graphics.g3d.shaders.BaseShader.GlobalSetter, com.badlogic.gdx.graphics.g3d.shaders.BaseShader.LocalSetter, com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter, com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform, com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Validator| Modifier and Type | Field and Description |
|---|---|
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
baseColorFactorSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
baseColorFactorUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
baseColorTextureSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
baseColorTextureUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
brdfLUTTextureSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
brdfLUTTextureUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
diffuseEnvTextureSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
diffuseEnvTextureUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
emissiveTextureSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
emissiveTextureUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
fogEquationSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
fogEquationUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
metallicRoughnessSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
metallicRoughnessTextureSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
metallicRoughnessTextureUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
metallicRoughnessUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
normalScaleSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
normalScaleUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
normalTextureSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
normalTextureUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
occlusionStrengthSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
occlusionStrengthUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
occlusionTextureSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
occlusionTextureUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
shadowBiasSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
shadowBiasUniform |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter |
specularEnvTextureSetter |
static com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform |
specularEnvTextureUniform |
int |
u_BaseColorFactor |
int |
u_BaseColorTexture |
int |
u_brdfLUTTexture |
int |
u_DiffuseEnvSampler |
int |
u_EmissiveTexture |
int |
u_FogEquation |
int |
u_metallicRoughness |
int |
u_metallicRoughnessTexture |
int |
u_NormalScale |
int |
u_NormalTexture |
int |
u_occlusionStrength |
int |
u_occlusionTexture |
int |
u_ShadowBias |
int |
u_SpecularEnvSampler |
ambientCubemap, attributesMask, config, defaultCullFace, defaultDepthFunc, directionalLights, dirLightsColorOffset, dirLightsDirectionOffset, dirLightsLoc, dirLightsSize, environmentCubemap, implementedFlags, lighting, pointLights, pointLightsColorOffset, pointLightsIntensityOffset, pointLightsLoc, pointLightsPositionOffset, pointLightsSize, shadowMap, spotLights, spotLightsColorOffset, spotLightsCutoffAngleOffset, spotLightsDirectionOffset, spotLightsExponentOffset, spotLightsIntensityOffset, spotLightsLoc, spotLightsPositionOffset, spotLightsSize, u_alphaTest, u_ambientCubemap, u_ambientTexture, u_ambientUVTransform, u_bones, u_cameraDirection, u_cameraNearFar, u_cameraPosition, u_cameraUp, u_diffuseColor, u_diffuseTexture, u_diffuseUVTransform, u_dirLights0color, u_dirLights0direction, u_dirLights1color, u_emissiveColor, u_emissiveTexture, u_emissiveUVTransform, u_environmentCubemap, u_fogColor, u_normalMatrix, u_normalTexture, u_normalUVTransform, u_opacity, u_pointLights0color, u_pointLights0intensity, u_pointLights0position, u_pointLights1color, u_projTrans, u_projViewTrans, u_projViewWorldTrans, u_reflectionColor, u_reflectionTexture, u_reflectionUVTransform, u_shadowMapProjViewTrans, u_shadowPCFOffset, u_shadowTexture, u_shininess, u_specularColor, u_specularTexture, u_specularUVTransform, u_spotLights0color, u_spotLights0cutoffAngle, u_spotLights0direction, u_spotLights0exponent, u_spotLights0intensity, u_spotLights0position, u_spotLights1color, u_time, u_viewTrans, u_viewWorldTrans, u_worldTrans| Constructor and Description |
|---|
PBRShader(com.badlogic.gdx.graphics.g3d.Renderable renderable,
com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.Config config,
java.lang.String prefix) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindLights(com.badlogic.gdx.graphics.g3d.Renderable renderable,
com.badlogic.gdx.graphics.g3d.Attributes attributes) |
protected void |
bindMaterial(com.badlogic.gdx.graphics.g3d.Attributes attributes) |
boolean |
canRender(com.badlogic.gdx.graphics.g3d.Renderable renderable) |
long |
computeMorphTargetsMask(com.badlogic.gdx.graphics.g3d.Renderable renderable) |
void |
init(com.badlogic.gdx.graphics.glutils.ShaderProgram program,
com.badlogic.gdx.graphics.g3d.Renderable renderable) |
void |
render(com.badlogic.gdx.graphics.g3d.Renderable renderable,
com.badlogic.gdx.graphics.g3d.Attributes combinedAttributes) |
begin, compareTo, createPrefix, dispose, end, equals, equals, getDefaultCullFace, getDefaultDepthFunc, getDefaultFragmentShader, getDefaultVertexShader, init, setDefaultCullFace, setDefaultDepthFuncpublic static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform baseColorTextureUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter baseColorTextureSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform baseColorFactorUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter baseColorFactorSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform emissiveTextureUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter emissiveTextureSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform normalTextureUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter normalTextureSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform metallicRoughnessTextureUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter metallicRoughnessTextureSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform metallicRoughnessUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter metallicRoughnessSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform normalScaleUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter normalScaleSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform occlusionStrengthUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter occlusionStrengthSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform occlusionTextureUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter occlusionTextureSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform diffuseEnvTextureUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter diffuseEnvTextureSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform specularEnvTextureUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter specularEnvTextureSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform brdfLUTTextureUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter brdfLUTTextureSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform shadowBiasUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter shadowBiasSetter
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Uniform fogEquationUniform
public static final com.badlogic.gdx.graphics.g3d.shaders.BaseShader.Setter fogEquationSetter
public final int u_metallicRoughness
public final int u_occlusionStrength
public final int u_metallicRoughnessTexture
public final int u_occlusionTexture
public final int u_DiffuseEnvSampler
public final int u_SpecularEnvSampler
public final int u_brdfLUTTexture
public final int u_NormalScale
public final int u_BaseColorTexture
public final int u_NormalTexture
public final int u_EmissiveTexture
public final int u_BaseColorFactor
public final int u_FogEquation
public final int u_ShadowBias
public PBRShader(com.badlogic.gdx.graphics.g3d.Renderable renderable,
com.badlogic.gdx.graphics.g3d.shaders.DefaultShader.Config config,
java.lang.String prefix)
public boolean canRender(com.badlogic.gdx.graphics.g3d.Renderable renderable)
canRender in interface com.badlogic.gdx.graphics.g3d.ShadercanRender in class com.badlogic.gdx.graphics.g3d.shaders.DefaultShaderpublic long computeMorphTargetsMask(com.badlogic.gdx.graphics.g3d.Renderable renderable)
public void init(com.badlogic.gdx.graphics.glutils.ShaderProgram program,
com.badlogic.gdx.graphics.g3d.Renderable renderable)
init in class com.badlogic.gdx.graphics.g3d.shaders.BaseShaderprotected void bindMaterial(com.badlogic.gdx.graphics.g3d.Attributes attributes)
bindMaterial in class com.badlogic.gdx.graphics.g3d.shaders.DefaultShaderpublic void render(com.badlogic.gdx.graphics.g3d.Renderable renderable,
com.badlogic.gdx.graphics.g3d.Attributes combinedAttributes)
render in class com.badlogic.gdx.graphics.g3d.shaders.DefaultShaderprotected void bindLights(com.badlogic.gdx.graphics.g3d.Renderable renderable,
com.badlogic.gdx.graphics.g3d.Attributes attributes)
bindLights in class com.badlogic.gdx.graphics.g3d.shaders.DefaultShader