Hey everyone, I was wondering if anyone knew how to get gradient material into code. I am using BABYLON version 3.2.0 but it does not have gradient material, so I tried adding in this file and then adding through script in my index.html but I couldn't use it in my typescript code. Then I tried adding this file to my typescript files which did let me compile without errors but gave me the runtime error typeError: BABYLON.GradientMaterial is not a constructor. I also tried adding this file to my javascript files, and it didn't seem do anything, any idea how to get gradient materials into my code?
Im using npm if that helps...
All I want to be able to do with it is this: https://www.babylonjs-playground.com/#2IFRKC%237
Any ideas?