在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Elringus/SpriteGlow开源软件地址:https://github.com/Elringus/SpriteGlow开源编程语言:ShaderLab 58.7%开源软件介绍:InstallationUse UPM to install the package via the following git URL: DescriptionThe glow effect is achieved using sprite outline in HDR colors (applied via shader) and bloom post-processing. For the bloom effect Unity Post Processing Stack (PPS) is used. You can replace it with similar 3rd-party solutions. The effect is compatible with the Universal Render Pipeline (URP, aka LWRP). Bloom should be configured via URP's own post-processing solution; don't forget to enable HDR in the pipeline asset settings. Character sprite by Mikhail Pigichka. FAQCan I use the effect with components other than SpriteRenderer (UI Image, Tilemap, etc)?Not directly (after all, this is SpriteGlow), but it's possible if the component is using a shader similar to sprites (e.g UI objects, tilemaps and other "2D" stuff). For this you will have to create a material based on the Why doesn't the glow appear?Make sure:
Why does the glow appear on the whole image?Make sure 'Threshold' value of the bloom image effect is set high enough. It's usually 1 to 1.5, depending on the bloom solution. Why do I get a NullReferenceException in build?Most likely the outline shader is not included to the build (it happens when none of the included assets reference SpriteGlow component directly). You can force-include the shader by assigning it to the "Always Included Shaders" in Edit -> Project Settings -> Graphics. It's still not working!Make sure you're using a compatible Unity version; supported versions per release are available on the releases page. Download (clone) this repository and examine the example scenes, comparing them with your setup. Chances are, you've misconfigured something. In case nothing of the above helps, check the active issues or open a new one. Don't forget to include the full error log, detailed information about your system, Unity version, package version and steps required to reproduce the issue. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论