当前位置:网站首页>HDRP shader 获取像素深度值和法线信息
HDRP shader 获取像素深度值和法线信息
2022-08-11 09:08:00 【凌晨出没的东熊】
深度值
创建一个自定义Pass

可以发现模板中已经帮我们获取好深度值了
详情见官方文档:https://docs.unity3d.com/cn/Packages/[email protected]/manual/Custom-Pass.html
参考文献(但失败):
HDRP中获取深度值-上午八点-https://blog.csdn.net/h5502637/article/details/86592210/
法线
添加引用文件
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Material/NormalBuffer.hlsl"
函数如下
NormalData normalData;
DecodeFromNormalBuffer(posInput.positionSS, normalData);
return float4(normalData.normalWS, color.a);
结果
边栏推荐
猜你喜欢
随机推荐
基于PSO在满足可靠性的基础上实现费用最优MATLAB仿真(含完整matlab代码)
CreateJS加速地址
仙人掌之歌——大规模高速扩张(1)
谁能解答?从mysql的binlog读取数据到kafka,但是数据类型有Insert,updata,
golang string manipulation
DataGrip配置OceanBase
Lightweight network (1): MobileNet V1, V2, V3 series
观察表情和面部,会发现他有焦虑和失眠的痕迹
阿里云OSS上传文件超时 探测工具排查方法
前几天,小灰去贵州了
WiFi cfg80211
深度学习100例 —— 卷积神经网络(CNN)识别眼睛状态
利用mindspore下面mindzoo里面的yolov3-darknet53进行目标识别,模型训练不收敛
Nuget can't find the package problem
2022-08-09 顾宇佳 学习笔记
canvas文字绘制(大小、粗体、倾斜、对齐、基线)
For the first time, I suspect that there is a bug in selenium4 because the iframe element is not found?
oracle使用online_catalog收集数据,想看下online_catalog模式修改表字
MongoDB 对索引的创建查询修改删除 附代码
tar 命令使用









