D
D
Death Gaze2016-11-23 12:04:00
JavaScript
Death Gaze, 2016-11-23 12:04:00

How to gradually change texture color with three.js?

Guys, I want to set the base color, and then smoothly repaint the stl model in a different color. Something like a progress bar.
Now I change the color of the entire texture somehow like this:

mesh = new THREE.Mesh(geo, material);
mesh.material.color.set(parseInt(mesh_color.substr(1), 16));

So that you understand what I want, I drew a little
ytNw1Co.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2016-11-23
@GreatRash

jsfiddle.net/FtML5/3 - via

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question