Question about shader optimization with constant parameters

Wow, that’s odd. Can this issue be addressed in a new update? I have a dual algorithm that converts a grayscale image to two separate sets of grayscale images, and it performs a value adjustment based on the threshold, effectively gaining two different value sets from one texture. But to get this to work in gamma space, I need to add 4 extra instructions with a power node. I guess I could just multiply the threshold by itself to get a power of 2, but the result would be very inaccurate. After testing the results, I specifically need a power of 2.2123 for the system to work properly.

It would be nice if you could fold the lerp node, too! :slight_smile: