Transition Lut Texture in Code

Advanced Color Grading for Unity Pro
Post Reply
eric_psoverlord
Posts: 1
Joined: Wed Mar 28, 2018 12:58 am

Transition Lut Texture in Code

Post 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?
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Transition Lut Texture in Code

Post 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!
Attachments
ChangeLut.zip
(630 Bytes) Downloaded 756 times
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply