Skip to content
项目

Cyanilux/URP_BlitRenderFeature

在 GitHub 查看

关于

适用于 Universal RP 的 Blit Render Feature。比随附的 Fullscreen Pass Renderer Feature 更灵活一些。

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Blit Renderer Feature

  • Used to apply fullscreen image effects to camera using a shader/material, or copy camera to offscreen buffer, etc. Similar to Fullscreen Pass Renderer Feature but a little bit more flexible.
  • Tested with Unity 6.3 LTS (6000.3.6f1). May work in earlier Unity 6 versions but untested. For even older, see branches.

Issues/Info :

  • Source texture is always cameraColor.
  • When using custom material/shader :
    • For graphs, must use Fullscreen Graph type. Use URP Sample Buffer node to obtain Blit Source.
    • For shader code, requires specific vertex shader. Sample _BlitTexture for source. Refer to https://www.cyanilux.com/faq/#fullscreen-shader (FragBlit there samples _BlitTexture for you)
  • "After Rendering" event doesn't work iirc. Use "After Rendering Post Processing" instead.
  • Compared to older versions, support for passing a global texture or RenderTexture asset into source has been removed. More details can be found in code comments. If these are needed, can still use a custom material/shader to sample that instead of Blit Source/_BlitTexture.
    • If sampling global textures, can use the list on the feature to declare/import them to RenderGraph. This may be important for global textures generated by other render passes to ensure they are still "alive".
  • Setting _InverseView matrix has also been removed (but shouldn't be needed as matrices aren't overriden with Blitter API, and Fullscreen Graph reconstructs world positions for you when using Position node anyway)

Setup:

  • Install via Package Manager → Add package via git URL :
    • https://github.com/Cyanilux/URP_BlitRenderFeature.git
  • Alternatively, download and put the folder in your Assets

Relevant Links / Resources :

探索相关项目

加载中…