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

Closed
novemrain opened this Issue Jul 2, 2012 · 3 comments

Projects

None yet

2 participants

@novemrain

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
Owner
@mrdoob mrdoob closed this Jul 2, 2012
@novemrain

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment