Class PBRShaderProvider
java.lang.Object
gaiasky.util.gdx.shader.provider.BaseIntShaderProvider
gaiasky.util.gdx.shader.provider.DefaultIntShaderProvider
gaiasky.util.gdx.model.gltf.scene3d.shaders.PBRShaderProvider
- All Implemented Interfaces:
IObserver
,IntShaderProvider
- Direct Known Subclasses:
PBREmissiveShaderProvider
-
Field Summary
Fields inherited from class gaiasky.util.gdx.shader.provider.DefaultIntShaderProvider
config
Fields inherited from class gaiasky.util.gdx.shader.provider.BaseIntShaderProvider
shaders
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkShaderCompilation
(ExtShaderProgram program) static PBRShaderProvider
createDefault
(int maxBones) static PBRShaderProvider
createDefault
(PBRShaderConfig config) static PBRShaderConfig
static DepthIntShaderProvider
createDefaultDepth
(int maxBones) static DepthIntShaderProvider
static DepthIntShader.Config
createPrefixBase
(IntRenderable renderable, PBRShaderConfig config) override this method in order to add your own prefix.createPrefixSRGB
(IntRenderable renderable, PBRShaderConfig config) protected IntShader
createShader
(IntRenderable renderable) protected PBRShader
createShader
(IntRenderable renderable, PBRShaderConfig config, String prefix) override this method in order to provide your own PBRShader subclass.static String
static String
int
protected boolean
isGL3()
static String
morphTargetsPrefix
(IntRenderable renderable) Methods inherited from class gaiasky.util.gdx.shader.provider.BaseIntShaderProvider
dispose, getShader, notify
-
Field Details
-
TAG
- See Also:
-
-
Constructor Details
-
PBRShaderProvider
-
-
Method Details
-
getDefaultVertexShader
-
getDefaultFragmentShader
-
createDefaultConfig
-
createDefaultDepthConfig
-
createDefault
-
createDefault
-
createDefaultDepth
-
createDefaultDepth
-
getShaderCount
public int getShaderCount() -
morphTargetsPrefix
-
isGL3
protected boolean isGL3()- Returns:
- if target platform is running with at least OpenGL ES 3 (GLSL 300 es), WebGL 2.0 (GLSL 300 es) or desktop OpenGL 3.0 (GLSL 130).
-
createPrefixBase
override this method in order to add your own prefix. -
createPrefixSRGB
-
createShader
- Overrides:
createShader
in classDefaultIntShaderProvider
-
createShader
override this method in order to provide your own PBRShader subclass. -
checkShaderCompilation
-