-
Notifications
You must be signed in to change notification settings - Fork 0
Home
arvinmoses edited this page Feb 4, 2025
·
5 revisions
Welcome to the ShaderShare wiki!
I'm just quickly writing out math for things I think would be useful. Will eventually push to pages, and then actual code
Tools to remap values to another.
low2 + (value - low1) * (high2 - low2) / (high1 - low1)
input - low1 / high1 - low1
Y' = ((Y - 16) x C) + B + 16
U'' = (((U-128) x Cos(H) + (V-128) x Sin(H)) x C x S) + 128
V'' = (((V-128) x Cos(H) - (U-128) x Sin(H)) x C x S) + 128