-
-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add camera property to ocean renderer #677
Conversation
Looks good to me |
Line 827 of
Otherwise the ocean just follows the camera instead of the Viewpoint. |
@skaughtx0r Sorry. I couldn't see the line you are referring to. Could you check again? |
@daleeidd Hmmm, I just checked the code in this branch and it looks fine. I think I messed it up trying to merge this with my 2018 and PostProcessing branch. PR looks good 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me
Thank you both. |
Adds a camera property so that we have both viewpoint and camera.
Before we only had a viewpoint transform which could differ from the camera transform. There are times where we must use the camera like when populating the shadow data. This was a bug which @skaughtx0r reported on Discord.
We could use the main camera tag but using own property allows shadows to work with the scene camera correctly.
The viewpoint property should be kept as it still has use cases like camera zooming.
I've made ViewerHeightAboveWater sample the camera transform as I couldn't think of a reason to have that separate.