Skip to content
This repository

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

Closed
novemrain opened this Issue July 02, 2012 · 3 comments

2 participants

novemrain Mr.doob
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

Mr.doob
Owner
mrdoob commented July 02, 2012
Mr.doob mrdoob closed this July 02, 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
Something went wrong with that request. Please try again.