Package playn.core
Class TriangleBatch.Source
java.lang.Object
playn.core.TexturedBatch.Source
playn.core.TriangleBatch.Source
- Enclosing class:
TriangleBatch
The source for the stock triangle batch shader program.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The varies-per-vert attribute variables for our shader.static final String
The same-for-all-verts-in-a-quad attribute variables for our shader.static final String
The shader code that computesv_Color
.static final String
The shader code that computesgl_Position
.static final String
The shader code that computesv_TexCoord
.static final String
Declares the uniform variables for our shader.static final String
Declares the varying variables for our shader. -
Constructor Summary
-
Method Summary
Methods inherited from class playn.core.TexturedBatch.Source
fragment
-
Field Details
-
VERT_UNIFS
Declares the uniform variables for our shader.- See Also:
-
VERT_ATTRS
The same-for-all-verts-in-a-quad attribute variables for our shader.- See Also:
-
PER_VERT_ATTRS
The varies-per-vert attribute variables for our shader.- See Also:
-
VERT_VARS
Declares the varying variables for our shader.- See Also:
-
VERT_SETPOS
The shader code that computesgl_Position
.- See Also:
-
VERT_SETTEX
The shader code that computesv_TexCoord
.- See Also:
-
VERT_SETCOLOR
The shader code that computesv_Color
.- See Also:
-
-
Constructor Details
-
Source
public Source()
-
-
Method Details
-
vertex
Returns the source of the vertex shader program.
-