lukakldiashvili / Unified-Universal-Blur

UI blur (translucent) effect for Unity.
MIT License
424 stars 33 forks source link

Version 0.3 #16

Closed lukakldiashvili closed 5 months ago

lukakldiashvili commented 5 months ago

Changelog:

Added

Changed

matyX6 commented 5 months ago

Thanks for updating the asset and adding resolution based scaling. Good job!

Since this is an URP asset, the feature should include URP "Render Scale" in calculate part as well. It also affects blur intensity.

This is how to access render scale from code:

var urpAsset = (UniversalRenderPipelineAsset)GraphicsSettings.renderPipelineAsset; -----> urpAsset.renderScale <-----

image

matyX6 commented 5 months ago

I added an actual render scale fix in the pull request... It goes through "OnCameraPreCull" instead of getting the render scale through urp asset as I suggested in previous comment

Pull Request