#Different shader language than in a YouTube video

8 messages · Page 1 of 1 (latest)

polar venture
#

I am watching a YouTube video about Bevy Shaders and there the guy uses expressions like this in his wgsl files: [[location(0)]], but Bevy throws an error when I try to also do that. For some reason, it only understands @location(0). Why is that? Are we using different versions? https://www.youtube.com/watch?v=SOOOc9-joVo

native drum
#

Probably a lot of his videos a kinda obselete because bevy changed so much this past year and a half

sudden ore
#

tbf, that's due to wgsl changing, not bevy in this specific case

native drum
#

But the principal still is relevant just you have to fidle with some details to get it to work

polar venture
#

Bruh, aight. Thx

native drum
#

Something you can also do is having the migration guides on the side

#

If your trying to reproduce a part of the video it is quite handy