|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.view.ParameterVertexShader
public class ParameterVertexShader
This is a VertexShader which colors the surface based on the value of a TextureParameter.
| Constructor Summary | |
|---|---|
ParameterVertexShader(RenderingMesh mesh,
ParameterValue param,
RGBColor lowColor,
RGBColor highColor,
double minValue,
double maxValue,
Vec3 viewDir)
Create a ParameterVertexShader for a mesh. |
|
| Method Summary | |
|---|---|
void |
getColor(int face,
int vertex,
RGBColor color)
Select the color for a vertex. |
void |
getTextureSpec(TextureSpec spec)
Get the color of the surface. |
boolean |
isUniformFace(int face)
Get whether a particular face should be rendered with a single uniform color. |
boolean |
isUniformTexture()
Get whether this shader represents a uniform texture. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterVertexShader(RenderingMesh mesh,
ParameterValue param,
RGBColor lowColor,
RGBColor highColor,
double minValue,
double maxValue,
Vec3 viewDir)
mesh - the mesh to renderparam - the ParameterValue by which to color the meshlowColor - the color to display for low values of the parameterhighColor - the color to display for high values of the parameterminValue - the minimum value the parameter can havemaxValue - the maximum value the parameter can haveviewDir - the direction from which it is being viewed| Method Detail |
|---|
public void getColor(int face,
int vertex,
RGBColor color)
getColor in interface VertexShaderface - the index of the triangle being renderedvertex - the index of the vertex to colorcolor - the vertex color will be returned in this objectpublic boolean isUniformFace(int face)
isUniformFace in interface VertexShaderface - the index of the triangle being renderedpublic boolean isUniformTexture()
isUniformTexture in interface VertexShaderpublic void getTextureSpec(TextureSpec spec)
getTextureSpec in interface VertexShaderspec - the surface color will be returned in this object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||