|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.view.SmoothVertexShader
public class SmoothVertexShader
This is a VertexShader which renders a uniform colored mesh with smooth shading.
Constructor Summary | |
---|---|
SmoothVertexShader(RenderingMesh mesh,
Object3D object,
double time,
Vec3 viewDir)
Create a SmoothVertexShader for a mesh. |
|
SmoothVertexShader(RenderingMesh mesh,
RGBColor color,
Vec3 viewDir)
Create a SmoothVertexShader 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 SmoothVertexShader(RenderingMesh mesh, Object3D object, double time, Vec3 viewDir)
mesh
- the mesh to renderobject
- the object to which the mesh correspondstime
- the current timeviewDir
- the direction from which it is being viewedpublic SmoothVertexShader(RenderingMesh mesh, RGBColor color, Vec3 viewDir)
mesh
- the mesh to rendercolor
- the color in which to draw the meshviewDir
- the direction from which it is being viewedMethod Detail |
---|
public void getColor(int face, int vertex, RGBColor color)
getColor
in interface VertexShader
face
- 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 VertexShader
face
- the index of the triangle being renderedpublic boolean isUniformTexture()
isUniformTexture
in interface VertexShader
public void getTextureSpec(TextureSpec spec)
getTextureSpec
in interface VertexShader
spec
- 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 |