import { CustomMaterial } from “…/…/materialsLibrary/src/custom/customMaterial”;
Gives me the error that its outside the rootDir. What would be the method of getting that to import to work inside the src folder of bjs? Its prolly not something I can do and I am assuming I will have to find a different way to accomplish what I want.
I wanted to be a tricky boi and get all the spriteMap stuff working with all our Standard Material functionality so we could have lighting effects and other things worked out that would match the 3d stuff. I guess the convention then will be to make a SpriteMapMaterial that is an extension of the standard material, but is more specific for that task then the CustomMaterial.
Honestly it would be ideal if the StandardMaterial just had all the injection methods the CustomMaterial has.
If you need to extend it it might be done through define or other techniques. We should not need internally to rely on custom material. Actually, custom material is a way to customize from outside the lib but if you change the lib itself you have all the freedom to adapt at the source level.
I see that it has #define CUSTOM_#### sections. Is there a way to tap into them? What other techniques could I deploy?
Ideally I dont want to have to replicate all the stuff from the lighting model, which is ezpz on the shader side but then having to create the class controller for it as well is kinda a time constraint I dont want to take on right now.