Package com.jme3.shader
Class Glsl300ShaderGenerator
java.lang.Object
com.jme3.shader.ShaderGenerator
com.jme3.shader.Glsl100ShaderGenerator
com.jme3.shader.Glsl150ShaderGenerator
com.jme3.shader.Glsl300ShaderGenerator
This shader Generator can generate Vertex and Fragment shaders from
ShaderNodes for GLESSL 3.0
Nowadays it's just a subclass of Glsl150ShaderGenerator overriding the version
string because GLSL 1.5 is mostly compatible with GLESSL 3.0
-
Field Summary
Fields inherited from class com.jme3.shader.Glsl100ShaderGenerator
inPosTmp
Fields inherited from class com.jme3.shader.ShaderGenerator
assetManager, indent, NAME_SPACE_GLOBAL, NAME_SPACE_MAT_PARAM, NAME_SPACE_VERTEX_ATTRIBUTE, NAME_SPACE_WORLD_PARAM, techniqueDef
-
Constructor Summary
ConstructorDescriptionGlsl300ShaderGenerator
(AssetManager assetManager) Creates a Glsl300ShaderGenerator -
Method Summary
Modifier and TypeMethodDescriptionprotected String
returns the language + version of the shader should be something like "GLSL100" for glsl 1.0 "GLSL150" for glsl 1.5.Methods inherited from class com.jme3.shader.Glsl150ShaderGenerator
declareAttribute, declareVarying, generateEndOfMainSection, generateStartOfMainSection, generateUniforms, initVariable
Methods inherited from class com.jme3.shader.Glsl100ShaderGenerator
appendIndent, appendOutput, comment, declareGlobalPosition, declareVariable, declareVariable, declareVariable, declareVariable, declareVariable, endCondition, fixInPositionType, generateAttributes, generateDeclarativeSection, generateNodeMainSection, generateUniforms, generateVaryings, getAppendableNameSpace, indent, isVarying, isWorldOrMaterialParam, map, replace, replaceVariableName, startCondition, unIndent, updateDefinesName
Methods inherited from class com.jme3.shader.ShaderGenerator
appendNodeDeclarationAndMain, buildShader, findShaderIndexFromVersion, generateDeclarationAndMainBody, generateShader, initialize
-
Constructor Details
-
Glsl300ShaderGenerator
Creates a Glsl300ShaderGenerator- Parameters:
assetManager
- the assetmanager
-
-
Method Details
-
getLanguageAndVersion
Description copied from class:ShaderGenerator
returns the language + version of the shader should be something like "GLSL100" for glsl 1.0 "GLSL150" for glsl 1.5.- Overrides:
getLanguageAndVersion
in classGlsl150ShaderGenerator
- Parameters:
type
- the shader type for which the version should be returned.- Returns:
- the shaderLanguage and version.
-