当前位置:网站首页>HDRP shader gets pixel depth value and normal information
HDRP shader gets pixel depth value and normal information
2022-08-11 09:25:00 【East Bear in the morning】
Depth Value
Create a custom Pass
You can find that the template has already helped us get the depth value
For details, see the official documentation: https://docs.unity3d.com/en/Packages/[email protected]/manual/Custom-Pass.html
References (but failed):
Get depth values in HDRP - 8AM - https://blog.csdn.net/h5502637/article/details/86592210/
Normal
Add reference file
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Material/NormalBuffer.hlsl"
The function is as follows
NormalData normalData;DecodeFromNormalBuffer(posInput.positionSS, normalData);return float4(normalData.normalWS, color.a)span>;
Results
边栏推荐
猜你喜欢
随机推荐
wordpress插件开发03-简单的all in one seo 插件开发
【wxGlade学习】wxGlade环境配置
网络流行简笔画图片大全,关于网络的简笔画图片
Data middle platform program analysis and development direction
MySql事务
opencv 制作趣图
idea插件自动填充setter
万字长文带你了解多态的底层原理,这一篇就够了
WordpressCMS主题开发02-制作顶部header.php和footer.php
HDRP shader 获取阴影(Custom Pass)
MATLAB实战Sobel边缘检测(Edge Detection)
《价值》读书与投资
5分钟快速为OpenHarmony提交PR(Web)
Primavera Unifier 自定义报表制作及打印分享
当你领导问你“还有其他的么”
无代码平台助力中山医院搭建“智慧化管理体系”,实现智慧医疗
DataGrip配置OceanBase
unity shader 测试执行时间
表达式必须具有与对应表达式相同的数据类型
WooCommerce电子商务WordPress插件-赚美国人的钱