Posted November 11, 2022 by IntakeOVR
Unfortunately, I was unexpectedly busy this week. So there are no new blocks as I promised but will (hopefully) do next week.
What's new
You see, I'm using the Get Channel block to get the alpha of main image and set it as a reference, so when I multiply it, the alpha of main image gets multiplied too. If I uncheck the "As Reference", it will create a new actual variable and copy the value of main image's alpha, so if I multiply that new variable, only that variable will be affected.
References are useful for referencing a vector component, that way you don't have to get channel, do some stuff, then manually set it to the original variable. This is a Shaderblocks-special feature, because actually there is no reference in Godot Shader Language or GLSL.
Currently references can only be created using the Get Channel block, but next week there will be a block for that.
Bug fix: 3D noises are not saved
The data of 3D noises such as Z Offset are not saved, and now it has been fixed.
Bug hunt: Variables with default names are not loaded properly
Sometimes I encountered an issue where I saved a Shaderblocks file and the variable names are default, then when I load it, it becomes messed up. But now I can't seem to reproduce the issue anymore, so if anyone encountered this, please report it to me.
Update: This has been fixed.