Skip to content

Instantly share code, notes, and snippets.

View klinkov's full-sized avatar

Yuriy Klinkov klinkov

  • London
  • 18:31 (UTC +01:00)
View GitHub Profile
@elringus
elringus / BlendModes.c
Last active March 11, 2024 11:32
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;
}