16
2016
Custom Sprite Bloom HDR Shader
Tried to do this shader mentioned in the forums (link), to have a Bloom image effect only on certain sprites.
See main image^ 2 same sprites, different material, so only 1 gets bloomed (even though the Bloom is full screen image effect)
Instructions:
– Download shader below
– Create new material, assign that shader to it
– Assign the material into sprite renderer
– In the Camera, enable [x] HDR *Disable Antialias from Edit/Quality settings if it complains about it
– Add Cinematic Image Effect, Bloom to the Camera *Download it from asset store or from bitpuke *Update: 2021, use Unity PostProcessing from package manager.
– Set Bloom threshold to 1.1 (so only pixels with color value over 1.1 will get bloomed)
Shader source: *Note: Currently this uses r+g+b to compare with shader BloomThreshold value..
https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/Sprites/SpriteHDRBloom.shader
*Image source: http://opengameart.org/content/mage-attack
Related Posts
4 Comments + Add Comment
Leave a comment
Recent posts
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on
Hello!
The shader look super great, but the link doesn’t work 🙁
Please fix it
link updated
links are broken again! Both to the unity asset store and the direct download link for the required Bloom camera effect.
those are not required anymore, try with unity Post Processing, it has Bloom effect. (from package manager)