react-three-renderer icon indicating copy to clipboard operation
react-three-renderer copied to clipboard

How to add gradient colors to a mesh?

Open davidgodzsak opened this issue 9 years ago • 1 comments

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?

davidgodzsak avatar Jun 08 '16 14:06 davidgodzsak

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

toxicFork avatar Jun 10 '16 20:06 toxicFork