Page 1 of 1

Transition Lut Texture in Code

PostPosted: Wed Mar 28, 2018 1:01 am
by eric_psoverlord
Hey! I've got a day/night cycle, and I'd like to be able to smoothly transition between Lut Textures for different hours in the day (sunrise/sunset, night time, day time, etc). How would I do this in code?

Re: Transition Lut Texture in Code

PostPosted: Wed Mar 28, 2018 9:15 am
by Amplify_Borba
Hello, thank you for getting in touch and for your support!

I'm attaching a sample script that cycles through an array of LUT textures on key press, you'll just need to add it to the Camera with the Amplify Color component. Feel free to change or adapt the code to suit your project's needs.

Please let me know if this helps, thanks!