Search the Community
Showing results for tags 'gradientmaterial'.
-
Hello again everyone, So earlier I figured out how to get gradients into my scene... but now I can't get them to do what I want. Im hoping to have the gradient go up and down kind of following water like movement, or even just something I could control the height. So in the playground I have the block with the gradient and one next to it, I want the intersection of the two colours to follow the moving blocks top edge(or at least goes up and down with the block, possibly all the way up or down)... https://www.babylonjs-playground.com/#2IFRKC#16 Any ideas how I could do this?
-
Hey Guys I have an issue with gradientMaterial. Here is a basic playground where everything is fine : https://www.babylonjs-playground.com/#2IFRKC#8 If I use a DirectionalLight instead of HemisphericLight, the material become much darker and the gradient is already almost not visible : https://www.babylonjs-playground.com/#2IFRKC#9 And if I change the sphere for a plane or a cylinder, the gradientMaterial become only dark : https://www.babylonjs-playground.com/#2IFRKC#10 Does this mean we can't use gradientMaterial with directionalLight? Thanks Pichou