Skip to content

Instantly share code, notes, and snippets.

View klinkov's full-sized avatar

Yuriy Klinkov klinkov

  • London
  • 10:30 (UTC)
View GitHub Profile
@elringus
elringus / BlendModes.c
Last active December 25, 2025 11:46
Popular blend mode algorithms implemented in Nvidia's Cg. https://elringus.me/blend-modes-in-unity/
fixed3 Darken (fixed3 a, fixed3 b)
{
return min(a, b);
}
fixed3 Multiply (fixed3 a, fixed3 b)
{
return a * b;
}