Closed wumaolinmaoan closed 2 weeks ago
The changes enhance the Camera
class within the effects-core
package by integrating a new composition
property and altering how the field of view (fov
) is scaled through a fovScaleRatio
property. The updates also modify Composition
to pass itself to the Camera
instance and adjust the fovScaleRatio
based on the renderer environment, thereby improving dynamic control over camera projection behaviors.
File Path | Change Summary |
---|---|
packages/effects-core/src/camera.ts | Added composition and fovScaleRatio properties to Camera class; multiplier in projection updated. |
packages/effects-core/src/composition.ts | Updated Camera instantiation to pass Composition as an argument; added logic to set fovScaleRatio . |
Amidst the fields of code we stride,
The camera's view now magnified.
WithfovScaleRatio
we tweak, adjust,
Ensuring visions clear and just.
TheComposition
lends a guiding hand,
Together now, in perfect stand.
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Camera
functionality with the addition ofcomposition
andfovScaleRatio
properties.Improvements
Composition
class now dynamically adjusts the camera's field of view scaling based on the environment type.