jbanj Posted April 3, 2022 Share Posted April 3, 2022 Hi, How can I animate the exposure of tonemapping in threejs? Scrolltrigger is already installed and I use it to animate geometry. This is exactly what I want to do- I have "renderer.toneMappingExposure = 0.7" but I would like to change the exposure to a lower number on scroll to 0.2, how do I do this? Thanks. Link to comment Share on other sites More sharing options...
Solution OSUblake Posted April 3, 2022 Solution Share Posted April 3, 2022 Hey jbanj, I'm not familiar with animating that property, but assuming it will automatically update after you change it, you would just animate the property. gsap.to(renderer, { toneMappingExposure: 0.2, scrollTrigger: { ... } }) 1 Link to comment Share on other sites More sharing options...
jbanj Posted April 3, 2022 Author Share Posted April 3, 2022 Oh wow, thanks @OSUblake it worked! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now