Welcome to the blog!
I am still not too certain as to what i will place here, but i guess it will serve as a small place for my stupid thoughts
There isn't really anything too fancy on this, it is just static HTML/CSS although i've added Prism for syntax highlighting and it is quite cool!
Here is an example of a use of it:
-- The ZVox gold side texture
local sideGradGold = {
{["e"] = 0, ["c"] = Color(198, 164, 38)}, -- e marks where it ends, lerps from the previous value
{["e"] = .45, ["c"] = Color(204, 202, 88)},
{["e"] = .65, ["c"] = Color(175, 103, 18)},
{["e"] = 1, ["c"] = Color(157, 82, 20)},
}
ZVox.NewTexturePixelFunc("gold_side", function(x, y)
local yc = y
local nsAdd = ZVox.Simplex2D(x * .1, 73476)
nsAdd = (nsAdd + 1) * .5
nsAdd = nsAdd * 2
yc = (yc + nsAdd)
local yD = yc / 16
yD = math.min(yD, 1)
local cR, cG, cB = ZVox.GetColorAtGradientPoint(yD, sideGradGold)
return cR, cG, cB
end)
Other than this, don't expect too much from this blog, it will probably me writing random shit and or complaining about random stuff