I’ve decided to make this thread for any small to medium sized projects I want to share instead of making whole new posts.
I made a simple HLSL custom node for something that I did with nodes at first. I am converting a texture to YUV, approximately, blurring it, and then, approximately, converting it back to RGB. This was inspired by Mirza Beig’s work.
I tweaked some of the numbers in the YUV to RGB conversion after the initial numbers I found produced off color results.
HLSL is much less scary once I watched a few Ben Cloward videos on it.
Here’s the node based version of it. This version runs with 2 more instructions on most surface materials, but actually runs slightly faster in UI. Truly negligible differences.
The material function:
HLSL effect:
Node effect: