public final class ShaderGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ShaderGeneratorConfig |
config |
static java.lang.String |
N_DECOMPRESS_DEFINE
G-Buffer normal decompression: #define N_DECOMPRESS(dst,src) and VZ_DECOMPRESS(src)
|
| Constructor and Description |
|---|
ShaderGenerator(ShaderGeneratorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
generate(AssetManager assets,
MaterialStandard material)
Generate standard shader for the specified
MaterialStandard |
MaterialShader |
generate(AssetManager assets,
ShaderParam shaderParam) |
void |
generate(Model model)
Generate standard shader for all
MaterialStandard of the specified Model |
void |
generate(Model model,
boolean rec)
Generate standard shader for all
MaterialStandard of the specified Model |
Shader |
generateSDFont() |
static Shader |
generateSkydome() |
public static final java.lang.String N_DECOMPRESS_DEFINE
public final ShaderGeneratorConfig config
public ShaderGenerator(ShaderGeneratorConfig config)
public final void generate(Model model)
MaterialStandard of the specified Modelpublic final void generate(Model model, boolean rec)
MaterialStandard of the specified Modelrec - true to traverse Model childspublic final boolean generate(AssetManager assets, MaterialStandard material)
MaterialStandardpublic final MaterialShader generate(AssetManager assets, ShaderParam shaderParam)
assets - AssetManager with a MaterialLibrary or nullshaderParam - a ShaderParam configuration for generating a ShaderShader, with a reference count incremented if assets is not nulljava.lang.IllegalArgumentException - if the AssetManager contains a null MaterialLibrarypublic static final Shader generateSkydome()
public final Shader generateSDFont()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com