I’ve been looking through your TweakableShader index.js and must say your code is immaculate. Modern JavaScript at its finest. I thought I was getting proficient with JavaScript, but now I feel like I need to go back to school, lol.
Where’d you learn how to code like that? Are you a professional developer?
Cool, you could use this.constructor.name as the shader name instead of hardcoding customShader. As a side benefit, it could also support more than one shader that way too
Actually you shouldn’t follow my code for best practices, I don’t have good command over OOP paradigm since I started with react as soon as I finished JavaScript basics and been working as react js developer since couple of years (which is also my total professional experience). So tbh I won’t be able to guide you towards the resources to learn JavaScript. I guess the way I learned (anything that I learned) is through building stuff and I strongly believe in that. Best of luck : )
Yea and the shader store’s “customFragment” and “customVertex”, which corresponds to “custom”. Naming in the shader class is pretty annoying and confusing.