Repeat texture along length, not just circumference.

This commit is contained in:
Bill Kuker 2012-07-03 18:22:01 +00:00 committed by U-WINDOWS-C28163E\Administrator
parent 1bf7cc32b9
commit 1b55457636

View File

@ -113,6 +113,7 @@ public class RealisticRenderStrategy extends RenderStrategy {
gl.glScaled(t.getScale().x, t.getScale().y, 0); gl.glScaled(t.getScale().x, t.getScale().y, 0);
gl.glTranslated(t.getOffset().x, t.getOffset().y, 0); gl.glTranslated(t.getOffset().x, t.getOffset().y, 0);
gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, toEdgeMode(t.getEdgeMode()));
gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, toEdgeMode(t.getEdgeMode())); gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, toEdgeMode(t.getEdgeMode()));
gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW); gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);