I'm super happy that you liked this feature, I've also wanted this for a long time. It took a lot longer than I expected to get this merged. I never expected I would see a whole video made on a PR I made 😅
@dealloc2 жыл бұрын
What a coincidence. I was thinking about this when doing shaders in Bevy. Great to see this coming!
@MrNathanShow Жыл бұрын
Do you know any details on how to access these globale via GLSL? Wgsl is still a bit of a pain for me... but maybe I need to just bite the bullet and learn it.
@chrisbiscardi Жыл бұрын
I don't work with GLSL inside of Bevy unfortunately, so I haven't been keeping up. It unfortunately looks like using wgsl modules from GLSL is currently broken though, according to this comment in the bevy repo: github.com/bevyengine/bevy/blob/aa489eced0ecfe0de38a9afca5a56c7934b949ab/assets/shaders/custom_material.frag#L13-L15 My suggestion would definitely be to try to work with wgsl as much as possible with Bevy. Support for other shader languages is definitely secondary to wgsl support IMO.
@MrNathanShow Жыл бұрын
Yeah, dang since I'm coming from GLSL... but will bite the bullet haha. Thank you very much for responding!
@Galakyllz2 жыл бұрын
I wonder why they chose an hour instead of max value?