Added a bit of animation support to my WebGPU library using @donmccurdy 's glTF-Transform and @tojiro 's gl-matrix.

#webgpu #wgsl #graphicsprogramming #javascript #webdev #webdevelopment #genart #creativecoding #digitalart #3d #cgi #shaders #generativeart #gltf

I personally don't like that #threejs uses #tsl to build shaders.
First, it seems to me that TSL takes a bit to "compile" the shaders on page load, and that's a bit annoying.
Second is the TSL language itself; if devs are going to learn a new "language" then just learn #wgsl.

I understand this is to provide compatibility with #glsl, but not a super fan.

I also must say this is not the first time I talk trash against a 3d library, the first time it was #AFrame and later I changed my mind.

Today I Learned that in WGSL you cannot assign to a swizzle - that means `foo.xyz = vec3f(0)` is illegal?!
https://gpuweb.github.io/gpuweb/wgsl/#vector-multi-component

I was ready to defend you, #WGSL, but this is pretty lame.

Also, it always worked on my machine (Chromium on Linux) and it took a code release to find this out.

WebGPU Shading Language

Part of my recent progress on my library POINTS (https://github.com/Absulit/points)

These are two render passes. Background pass has an image. Foreground pass has a mesh and an image inside; mesh is scaled dynamically at runtime. The image preserves its ratio no matter the scale of the quad.

#webgpu #wgsl #graphicsprogramming #javascript #webdev #webdevelopment
#genart #creativecoding #digitalart #3d #cgi #computeshaders #shaders #generativeart

I wrote a dithering post-processing effect as a mini weekend project. And I am proud to say I understand ~78.125% of the math. #bevy #bevy_engine #shader #wgsl

This is more or less how the uniforms, storage and constants can be used now.

You can basically assign new properties on the fly to these attributes from the main library class and that's basically it.

#webgpu #wgsl #graphicsprogramming #javascript #webdev #webdevelopment

Anyone managed to get wgsl-analyzer to work on #NixOS ? Mine exits with a mere
`[ERROR] wgsl-analyzer err: <- StreamClosed`
I ran `wgsl-analyzer --version` and got... 0.0.0 !?

#WGSL