MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / aux

Method aux

src/main/java/field/graphics/BaseMesh.java:81–83  ·  view source on GitHub ↗

return a view onto the aux storage for this mesh. Write your aux data into these FloatBuffer. This data appears in shaders, associated per vertex. For example, this statement in a vertex shader: "layout(location=1) in vec4 color" means that you can write mesh.aux(1, 4).put([1,2,3,4])

(int attribute, int dimension)

Source from the content-addressed store, hash-verified

79 * up to and including location=15.
80 */
81 public FloatBuffer aux(int attribute, int dimension) {
82 return buffer(attribute, dimension).floats(false);
83 }
84
85 public interface ArrayBufferFactory {
86 ArrayBuffer newArrayBuffer(int maxVertex, int binding, int attribute, int dimension, int divisor);

Callers

nothing calls this directly

Calls 2

bufferMethod · 0.95
floatsMethod · 0.65

Tested by

no test coverage detected