Repeat texture along length, not just circumference.
This commit is contained in:
parent
1bf7cc32b9
commit
1b55457636
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user