|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.imp3d.gl20.GL20Resource de.grogra.imp3d.gl20.GL20ResourceShaderPhong
public class GL20ResourceShaderPhong
Field Summary | |
---|---|
static int |
NEEDS_LIGHTS
shader need information about lights |
static int |
NEEDS_NORMAL
shader need normals for calculation |
static int |
NEEDS_TEXCOORD
shader need texture coordinats for calculation |
static int |
NEEDS_WORLD_TO_VIEW_MATRIX
shader need the world-to-view matrix |
static int |
NON_OPAQUE
shader can produce transparent fragments |
Constructor Summary | |
---|---|
GL20ResourceShaderPhong()
|
Methods inherited from class de.grogra.imp3d.gl20.GL20Resource |
---|
getResourceClass, getResourceClassType, getResourceType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NEEDS_LIGHTS
public static final int NEEDS_NORMAL
public static final int NEEDS_TEXCOORD
public static final int NEEDS_WORLD_TO_VIEW_MATRIX
public static final int NON_OPAQUE
Constructor Detail |
---|
public GL20ResourceShaderPhong()
Method Detail |
---|
public void destroy()
GL20Shader
public boolean fragmentAffectOnAlpha()
public final GL20ResourceShaderFragment getAmbientMap()
public final GL20ResourceShaderFragment getDiffuseMap()
public final GL20ResourceShaderFragment getEmissiveMap()
public int getEnvironmentDependencies()
GL20ResourceShader
public int getScalarFromShader(de.grogra.imp3d.gl20.GL20GLSLCode code, int channel)
public final GL20ResourceShaderFragment getShininessMap()
public final GL20ResourceShaderFragment getSpecularMap()
public final GL20ResourceShaderFragment getTransparencyDiffuseMap()
public final GL20ResourceShaderFragment getTransparencyMap()
public final GL20ResourceShaderFragment getTransparencyShininessMap()
public int getVector3FromShader(de.grogra.imp3d.gl20.GL20GLSLCode code, int startChannel)
public int getVector4FromShader(de.grogra.imp3d.gl20.GL20GLSLCode code, int startChannel)
public boolean isUpToDate()
GL20ResourceShader
is up to date
true
this GL20ResourceShader
is up to date
false
this GL20ResourceShader
is not up to date,
need an update()
callupdate()
public final void setAmbientMap(GL20ResourceShaderFragment ambientMap)
public final void setDiffuseMap(GL20ResourceShaderFragment diffuseMap)
public final void setEmissiveMap(GL20ResourceShaderFragment emissiveMap)
public boolean setShader(Shader shader)
public final void setShininessMap(GL20ResourceShaderFragment shininessMap)
public final void setSpecularMap(GL20ResourceShaderFragment specularMap)
public final void setTransparencyDiffuseMap(GL20ResourceShaderFragment transparencyDiffuseMap)
public final void setTransparencyMap(GL20ResourceShaderFragment transparencyMap)
public final void setTransparencyShininessMap(GL20ResourceShaderFragment transparencyShininessMap)
public void update()
GL20ResourceShader
public void applyShader(boolean shadeless)
public final Shader getShader()
Shader
Shader
public void registerUser()
public void unregisterUser()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |