Shader Laboratory
842 subscribers
265 photos
15 videos
59 files
404 links
Shader Laboratory
a channel about shaders in telegram

ID : @smkgames

MyStack : goo.gl/smMuqe 😎👌
Download Telegram
multiply   a * b
screen 1 - (1 - a) * (1 - b)
darken min(a, b)
lighten max(a, b)
difference abs(a - b)
negation 1 - abs(1 - a - b)
exclusion a + b - 2 * a * b
overlay a < .5 ? (2 * a * b) : (1 - 2 * (1 - a) * (1 - b))
hard light b < .5 ? (2 * a * b) : (1 - 2 * (1 - a) * (1 - b))
soft light b < .5 ? (2 * a * b + a * a * (1 - 2 * b)) : (sqrt(a) * (2 * b - 1) + (2 * a) * (1 - b))
dodge a / (1 - b)
burn 1 - (1 - a) / b

Blending formula
Forwarded from Kamali
this is a simple trick to make this
Shader Laboratory
https://twitter.com/simonschreibt/status/1228103930950934528?s=20
I had this idea and did a little prototype for a geometric fluid. Needs more work of course. Nowadays we can bring fluid-sims into realtime-engines by putting vertex data into textures and re-building the mesh every frame.
I tried something simpler: using a “tile-able” fluid-mesh and just moving it along a spline. This test is made in 3Ds Max. Need to checkout how to move meshes along splines in Unreal. Here the loop is very obvious but maybe with a mesh with less unique areas and forms it will be hidden better: