前言 我们在这篇文章中看一下,URP下怎么开启抓屏。 一、抓屏开启 在URP下,打开下面这个选项 Frame Debugger下可以看见 CopyColor 就是我们上一帧的内容 Opaque Downsampling改变截取的帧精度 使用不透明渲染队列才可以使用深度图 Render Queue < 2500 时才可以使用深度图 Tags{“Queue”=“Geometry}” 开启Zwrite Zwrite On 二、抓屏使用 我们这里创建一个面片来测试一下 因为,要用面片显示抓取的内容。 所以,我们得让抓屏不把该面片抓进去,需要抓取的其他物体开启抓屏。 Tags{“Queue”=“Transparent”} ZWrite Off TEXTURE2D(_CameraOpaqueTexture);SAMPLER(sampler_CameraOpaqueTexture); 也可以直接使用hlsl内部定义 #define REQUIRE_OPAQUE_TEXTURE 使用模型uv采样 float4 opaqueMap =...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with return
Contact return, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack