firtoz / react-three-renderer

Render into a three.js canvas using React.
https://toxicfork.github.com/react-three-renderer-example/
MIT License
1.49k stars 155 forks source link

How to add gradient colors to a mesh? #81

Open davidgodzsak opened 8 years ago

davidgodzsak commented 8 years ago

In Three.js there is a way to add linear-gradients to meshes. See this tutorial: http://www.johannes-raida.de/tutorials/three.js/tutorial03/tutorial03.htm

How can I achieve the same with react-three-renderer?

I want to use this with a plane and I found planes have a colors parameter in the docs. How can I make use of it?

Or is there any other simple way to achieve linear-gradients?

toxicFork commented 8 years ago

I will create an example with this and implement the features if missing