public class Glsl300ShaderGenerator extends Glsl150ShaderGenerator
inPosTmp
assetManager, indent, NAME_SPACE_GLOBAL, NAME_SPACE_MAT_PARAM, NAME_SPACE_VERTEX_ATTRIBUTE, NAME_SPACE_WORLD_PARAM, techniqueDef
Constructor and Description |
---|
Glsl300ShaderGenerator(AssetManager assetManager)
Creates a Glsl300ShaderGenerator
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getLanguageAndVersion(Shader.ShaderType type)
returns the language + version of the shader should be something like
"GLSL100" for glsl 1.0 "GLSL150" for glsl 1.5.
|
declareAttribute, declareVarying, generateEndOfMainSection, generateStartOfMainSection, generateUniforms, initVariable
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
appendNodeDeclarationAndMain, buildShader, findShaderIndexFromVersion, generateDeclarationAndMainBody, generateShader, initialize
public Glsl300ShaderGenerator(AssetManager assetManager)
assetManager
- the assetmanagerprotected java.lang.String getLanguageAndVersion(Shader.ShaderType type)
ShaderGenerator
getLanguageAndVersion
in class Glsl150ShaderGenerator
type
- the shader type for which the version should be returned.