S
S
Sergey2021-06-24 08:17:32
JavaScript
Sergey, 2021-06-24 08:17:32

How to reduce material/texture in Three.js?

Here's my experiment
How do I scale down a material/texture for a ball in Three.js?
60d415ae70fd8705971688.png
We need the "cellularity" to be less, like so...
60d4150745cc8348499495.png

the creation of the ball and material can be seen in the source code of the page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2021-06-25
@sslion

for the future, if anyone needs it, the texture scale can be set like this

sphereTexture.wrapS = THREE.RepeatWrapping;
        sphereTexture.wrapT = THREE.RepeatWrapping;
        sphereTexture.repeat = {x:5, y:5} // повторять текстуру 5 раз по вертикали и горизонтали

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question