added shader.setTexture() call in PShape3D.renderFill()

This commit is contained in:
codeanticode
2012-02-12 21:09:16 +00:00
parent be51cbc787
commit ff0b8e7877
2 changed files with 2 additions and 0 deletions

View File

@@ -3744,6 +3744,7 @@ public class PShape3D extends PShape {
if (tex != null) {
shader.setTexCoordAttribute(root.glFillTexCoordBufferID, 2, PGL.GL_FLOAT, 0, 2 * first * PGL.SIZEOF_FLOAT);
shader.setTexture(tex);
}
pgl.glBindBuffer(PGL.GL_ELEMENT_ARRAY_BUFFER, root.glFillIndexBufferID);