Class PBRDepthShader
java.lang.Object
gaiasky.util.gdx.shader.BaseIntShader
gaiasky.util.gdx.shader.DefaultIntShader
gaiasky.util.gdx.shader.DepthIntShader
gaiasky.util.gdx.model.gltf.scene3d.shaders.PBRDepthShader
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IntShader
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.util.gdx.shader.DepthIntShader
DepthIntShader.ConfigNested classes/interfaces inherited from class gaiasky.util.gdx.shader.DefaultIntShader
DefaultIntShader.Inputs, DefaultIntShader.SettersNested classes/interfaces inherited from class gaiasky.util.gdx.shader.BaseIntShader
BaseIntShader.GlobalSetter, BaseIntShader.LocalSetter, BaseIntShader.Setter, BaseIntShader.Uniform, BaseIntShader.Validator -
Field Summary
FieldsFields inherited from class gaiasky.util.gdx.shader.DepthIntShader
numBones, weightsFields inherited from class gaiasky.util.gdx.shader.DefaultIntShader
attributesMask, config, directionalLights, dirLightsColorOffset, dirLightsDirectionOffset, dirLightsLoc, dirLightsSize, lighting, pointLights, pointLightsColorOffset, pointLightsIntensityOffset, pointLightsLoc, pointLightsPositionOffset, pointLightsSize, shadowMap, spotLights, spotLightsColorOffset, spotLightsCutoffAngleOffset, spotLightsDirectionOffset, spotLightsExponentOffset, spotLightsIntensityOffset, spotLightsLoc, spotLightsPositionOffset, spotLightsSize, u_alphaTest, u_ambientCubemap, u_aoCubemap, u_aoTexture, u_bodySize, u_bones, u_cameraDirection, u_cameraK, u_cameraNearFar, u_cameraPosition, u_cameraUp, u_dCamPos, u_diffuseColor, u_diffuseCubemap, u_diffuseScatteringColor, u_diffuseTexture, u_dirLights0color, u_dirLights0direction, u_dirLights1color, u_eclipseOutlines, u_eclipsingBodyPos, u_eclipsingBodyRadius, u_elevationMultiplier, u_emissiveColor, u_emissiveCubemap, u_emissiveTexture, u_fogColor, u_generic1, u_generic2, u_heightCubemap, u_heightNoiseSize, u_heightScale, u_heightSize, u_heightTexture, u_ior, u_iridescenceFactor, u_iridescenceIOR, u_iridescenceTexture, u_iridescenceThicknessMax, u_iridescenceThicknessMin, u_iridescenceThicknessTexture, u_metallicColor, u_metallicCubemap, u_metallicTexture, u_normalCubemap, u_normalMatrix, u_normalTexture, u_occlusionMetallicRoughnessTexture, u_opacity, u_pointLights0color, u_pointLights0intensity, u_pointLights0position, u_pointLights1color, u_prevProjView, u_projTrans, u_projViewTrans, u_reflectionCubemap, u_roughnessColor, u_roughnessCubemap, u_roughnessTexture, u_shadowMapProjViewTrans, u_shadowPCFOffset, u_shadowTexture, u_shininess, u_specularColor, u_specularCubemap, u_specularTexture, u_spotLights0color, u_spotLights0cutoffAngle, u_spotLights0direction, u_spotLights0exponent, u_spotLights0intensity, u_spotLights0position, u_spotLights1color, u_svtBufferTexture, u_svtDepth, u_svtDetectionFactor, u_svtId, u_svtIndirectionAoTexture, u_svtIndirectionDiffuseTexture, u_svtIndirectionEmissiveTexture, u_svtIndirectionHeightTexture, u_svtIndirectionMetallicTexture, u_svtIndirectionNormalTexture, u_svtIndirectionRoughnessTexture, u_svtIndirectionSpecularTexture, u_svtResolution, u_svtTileSize, u_tessQuality, u_thicknessFactor, u_thicknessTexture, u_time, u_volumeColor, u_volumeDistance, u_vrOffset, u_vrScale, u_worldTransFields inherited from class gaiasky.util.gdx.shader.BaseIntShader
camera, context, program -
Constructor Summary
ConstructorsConstructorDescriptionPBRDepthShader(IntRenderable renderable, DepthIntShader.Config config, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRender(IntRenderable renderable) Checks whether this shader is intended to render theIntRenderable.protected longcomputeMorphTargetsMask(IntRenderable renderable) voidinit()Initializes the IntShader, must be called before the IntShader can be used.voidrender(IntRenderable renderable, Attributes combinedAttributes) Methods inherited from class gaiasky.util.gdx.shader.DepthIntShader
createPrefix, getDefaultFragmentShader, getDefaultVertexShaderMethods inherited from class gaiasky.util.gdx.shader.DefaultIntShader
begin, bindLights, bindMaterial, compareTo, createPrefix, dispose, end, equals, equals, getDefaultCullFace, getDefaultDepthFunc, setDefaultCullFace, setDefaultDepthFunc
-
Field Details
-
morphTargetsMask
public final long morphTargetsMask
-
-
Constructor Details
-
PBRDepthShader
-
-
Method Details
-
computeMorphTargetsMask
-
canRender
Description copied from interface:IntShaderChecks whether this shader is intended to render theIntRenderable. Use this to make sure a call to theIntShader.render(IntRenderable)method will succeed. This is expected to be a fast, non-blocking method. Note that this method will only return true if it is intended to be used. Even when it returns false the IntShader might still be capable of rendering, but it's not preferred to do so.- Specified by:
canRenderin interfaceIntShader- Overrides:
canRenderin classDepthIntShader- Parameters:
renderable- The renderable to check against this shader.- Returns:
- true if this shader is intended to render the
IntRenderable, false otherwise.
-
init
public void init()Description copied from interface:IntShaderInitializes the IntShader, must be called before the IntShader can be used. This typically compiles aShaderProgram, fetches uniform locations and performs other preparations for usage of the IntShader.- Specified by:
initin interfaceIntShader- Overrides:
initin classDefaultIntShader
-
render
- Overrides:
renderin classDepthIntShader
-