public class SimpleShaderAppearance
extends org.jogamp.java3d.ShaderAppearance
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
alphaTestMethod |
static java.lang.String |
alphaTestUniforms |
static java.lang.String |
glFrontMaterial |
static java.lang.String |
glLightSource |
ALLOW_SHADER_ATTRIBUTE_SET_READ, ALLOW_SHADER_ATTRIBUTE_SET_WRITE, ALLOW_SHADER_PROGRAM_READ, ALLOW_SHADER_PROGRAM_WRITE
ALLOW_COLORING_ATTRIBUTES_READ, ALLOW_COLORING_ATTRIBUTES_WRITE, ALLOW_LINE_ATTRIBUTES_READ, ALLOW_LINE_ATTRIBUTES_WRITE, ALLOW_MATERIAL_READ, ALLOW_MATERIAL_WRITE, ALLOW_POINT_ATTRIBUTES_READ, ALLOW_POINT_ATTRIBUTES_WRITE, ALLOW_POLYGON_ATTRIBUTES_READ, ALLOW_POLYGON_ATTRIBUTES_WRITE, ALLOW_RENDERING_ATTRIBUTES_READ, ALLOW_RENDERING_ATTRIBUTES_WRITE, ALLOW_TEXGEN_READ, ALLOW_TEXGEN_WRITE, ALLOW_TEXTURE_ATTRIBUTES_READ, ALLOW_TEXTURE_ATTRIBUTES_WRITE, ALLOW_TEXTURE_READ, ALLOW_TEXTURE_UNIT_STATE_READ, ALLOW_TEXTURE_UNIT_STATE_WRITE, ALLOW_TEXTURE_WRITE, ALLOW_TRANSPARENCY_ATTRIBUTES_READ, ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE
Constructor and Description |
---|
SimpleShaderAppearance()
This will define the shader code based on the attributes set
|
SimpleShaderAppearance(boolean lit,
boolean hasTexture) |
SimpleShaderAppearance(org.jogamp.vecmath.Color3f color)
Lines with a single color no texture, ignores vertex attribute of color
|
Modifier and Type | Method and Description |
---|---|
org.jogamp.java3d.NodeComponent |
cloneNodeComponent()
Must implement or clones turn out to be ShaderAppearance
|
java.lang.String |
getFragmentShaderSource() |
java.lang.String |
getVertexShaderSource() |
void |
setColoringAttributes(org.jogamp.java3d.ColoringAttributes coloringAttributes) |
void |
setLineAttributes(org.jogamp.java3d.LineAttributes lineAttributes) |
void |
setMaterial(org.jogamp.java3d.Material material) |
void |
setPointAttributes(org.jogamp.java3d.PointAttributes pointAttributes) |
void |
setPolygonAttributes(org.jogamp.java3d.PolygonAttributes polygonAttributes) |
void |
setRenderingAttributes(org.jogamp.java3d.RenderingAttributes renderingAttributes) |
void |
setTexCoordGeneration(org.jogamp.java3d.TexCoordGeneration texCoordGeneration) |
void |
setTexture(org.jogamp.java3d.Texture texture) |
void |
setTextureAttributes(org.jogamp.java3d.TextureAttributes textureAttributes) |
void |
setTextureUnitState(int index,
org.jogamp.java3d.TextureUnitState state) |
void |
setTextureUnitState(org.jogamp.java3d.TextureUnitState[] stateArray) |
void |
setTransparencyAttributes(org.jogamp.java3d.TransparencyAttributes transparencyAttributes) |
static void |
setVersion120() |
static void |
setVersionES100() |
static void |
setVersionES300() |
duplicateNodeComponent, getShaderAttributeSet, getShaderProgram, setShaderAttributeSet, setShaderProgram
getColoringAttributes, getLineAttributes, getMaterial, getPointAttributes, getPolygonAttributes, getRenderingAttributes, getTexCoordGeneration, getTexture, getTextureAttributes, getTextureUnitCount, getTextureUnitState, getTextureUnitState, getTransparencyAttributes
cloneNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
public static java.lang.String alphaTestUniforms
public static java.lang.String alphaTestMethod
public static java.lang.String glFrontMaterial
public static java.lang.String glLightSource
public SimpleShaderAppearance()
public SimpleShaderAppearance(org.jogamp.vecmath.Color3f color)
color
- public SimpleShaderAppearance(boolean lit, boolean hasTexture)
public static void setVersionES100()
public static void setVersionES300()
public static void setVersion120()
public java.lang.String getVertexShaderSource()
public java.lang.String getFragmentShaderSource()
public void setMaterial(org.jogamp.java3d.Material material)
setMaterial
in class org.jogamp.java3d.Appearance
public void setColoringAttributes(org.jogamp.java3d.ColoringAttributes coloringAttributes)
setColoringAttributes
in class org.jogamp.java3d.Appearance
public void setTransparencyAttributes(org.jogamp.java3d.TransparencyAttributes transparencyAttributes)
setTransparencyAttributes
in class org.jogamp.java3d.Appearance
public void setRenderingAttributes(org.jogamp.java3d.RenderingAttributes renderingAttributes)
setRenderingAttributes
in class org.jogamp.java3d.Appearance
public void setPolygonAttributes(org.jogamp.java3d.PolygonAttributes polygonAttributes)
setPolygonAttributes
in class org.jogamp.java3d.Appearance
public void setLineAttributes(org.jogamp.java3d.LineAttributes lineAttributes)
setLineAttributes
in class org.jogamp.java3d.Appearance
public void setPointAttributes(org.jogamp.java3d.PointAttributes pointAttributes)
setPointAttributes
in class org.jogamp.java3d.Appearance
public void setTexture(org.jogamp.java3d.Texture texture)
setTexture
in class org.jogamp.java3d.Appearance
public void setTextureAttributes(org.jogamp.java3d.TextureAttributes textureAttributes)
setTextureAttributes
in class org.jogamp.java3d.Appearance
public void setTexCoordGeneration(org.jogamp.java3d.TexCoordGeneration texCoordGeneration)
setTexCoordGeneration
in class org.jogamp.java3d.Appearance
public void setTextureUnitState(org.jogamp.java3d.TextureUnitState[] stateArray)
setTextureUnitState
in class org.jogamp.java3d.Appearance
public void setTextureUnitState(int index, org.jogamp.java3d.TextureUnitState state)
setTextureUnitState
in class org.jogamp.java3d.Appearance
public org.jogamp.java3d.NodeComponent cloneNodeComponent()
cloneNodeComponent
in class org.jogamp.java3d.ShaderAppearance