Skip to content

How to repeat the texture map like 'GL_REPEAT'? #2153

novemrain opened this Issue Jul 2, 2012 · 3 comments

2 participants


I have a house model in my game
and I got some materials for the house geomerty

There is a material for the wall of the house
I got a texture-map-image to show the bricks

var mat = new THREE.MeshPhongMaterial( { ambient: 0x969696,map: THREE.ImageUtils.loadTexture( 'textures/G/G0.jpg' ), overdraw: true,combine: THREE.MultiplyOperation } )

In this way,the texture map is show like 'GL_CLAMP'
But I want it shows like 'GL_REPEAT'
what should I do?

this is GL_CLAMP
GitHub Logo
Format: Alt Text

and this is GL_REPEAT
GitHub Logo
Format: Alt Text

mrdoob commented Jul 2, 2012
@mrdoob mrdoob closed this Jul 2, 2012

It takes a long time to find someone who knows this issue
Could you just give me a little help?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.