Weekly update #3


What's new in this update:

  • You can now move block position
  • Auto scroll during drag and drop
  • New blend modes on Draw blocks
  • New blocks: Draw Var and Premul to Straight alpha
  • 3D noises
  • Improved generated code


Block reordering
You can now drag and move block position




Autoscroll when dragging
Too many blocks? Don't worry! When you're dragging from block menu or moving a block, and your mouse is at the edge of shader panel, it will automatically scroll




New blend modes on draw blocks
Draw* blocks now have these following blend modes

  • Behind
  • Clip
  • Clip Behind

Screen blend mode has been removed because I don't think it's used often, so you should use Blend block for that.


Noise being drawn behind G-Bot


New block: Draw Variable
Unlike Set, this block follows the Draw blocks behavior, which blends itself with apply. With this block, you don't have to use the Blend block to blend variables anymore, unless for advanced blending modes.


The main image is icon.png and there is a circle variable, then I draw the circle on the main image using Draw Variable

Additionally, for variables that doesn't have alpha channel, there will be an "Alpha" param that will be the alpha for them.



New block: Premultiplied to Straight Alpha
This block converts premultiplied alpha to straight alpha. This will fix dark semi-transparent pixels




3D Noises
We added 3D version of existing noises (Perlin, Simplex, and Voronoi). They use 3D UV, so you should use vec3 instead of vec2. However, similar to Draw Variable, if you use 2D UV (vec2), there will be "Z Offset" param for them




Improved Generated Code
The goal of Shaderblocks is not only easy and fast shader creation, we also want to make sure that the generated code looks good and human-friendly.

Before:

After:


Get Shaderblocks

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.