Open zhuxudong opened 2 weeks ago
The recent changes introduce a new BloomEffect
class for enhanced bloom rendering in post-processing, which includes stages like downsampling, blurring, and upsampling. Also, updates were made to the shadow casting logic in CascadedShadowCasterPass.ts
, improving texture creation parameters and fixing minor issues.
File Path | Change Summary |
---|---|
packages/core/src/postProcess/effects/BloomEffect.ts | Added a BloomEffect class with properties and methods for bloom rendering, shader code for multiple bloom stages, and a new BloomDownScaleMode enum. |
packages/core/src/shadow/CascadedShadowCasterPass.ts | Updated texture creation parameters for depth and color textures, fixed an engine reference issue, and improved the shadow texture depth comparison logic. |
sequenceDiagram
participant Scene
participant BloomEffect
participant Shader
participant Renderer
Scene->>+BloomEffect: Enable BloomEffect
BloomEffect->>Shader: Load bloom shaders
BloomEffect->>Renderer: Prepare to render with bloom
Renderer->>Shader: Apply prefilter
Renderer->>Shader: Apply horizontal blur
Renderer->>Shader: Apply vertical blur
Renderer->>Shader: Apply upsample
Renderer->>Shader: Apply final composition
Shader->>+Scene: Rendered scene with bloom effect
In code's bright dawn, a bloom takes flight,
With shaders that dance in radiant light.
Shadows adjust, textures refined,
Now clearer, sharper, perfectly aligned.
On pixels' edge, brilliance we see,
A coder's dream, now wild and free. 🌟
[!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?
待讨论问题:
RFC: https://yuque.antfin-inc.com/shensi.zxd/ftoum6/gheugo4e7e1c1oil
Please check if the PR fulfills these requirements
Summary by CodeRabbit
New Features
Improvements