Jump to content
Search Community

Scrolltrigger with Threejs

jbanj test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

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

  • Solution

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: {
    ...
  }
})

 

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...