当前位置:网站首页>Unity shadow shadow pancaking
Unity shadow shadow pancaking
2022-06-27 16:39:00 【Tomato ape】
Shadow Pendant (Shadow pancaking)
To reduce shadow and dark spots (Shadow acne)Unity Adopted a method called Shadow flat falling (Shadow pancaking) Technology , The idea is to reduce the range of lighting space used when rendering shadow maps along the lighting direction , This can improve the accuracy of shadow mapping , Reduce shadows and dark spots (Shadow acne)
As shown in the figure below , It mainly takes the intersection between the light direction and the visual cone
Light blue circles indicate objects that produce shadow casting
The dark blue rectangle represents the original light space
The green line indicates the optimized near plane , Eliminate all invisible shadow casting objects that are not visible cones 
It looks like , Equal to that we truncate the shadow casting objects within the optimized light near the clipping plane ( At the top Shader in ), It should be noted that although the performance is generally ok , However, problems arise when you encounter some particularly large triangular surfaces that span this near clipping plane .
As shown in the figure above , Only one vertex of the blue triangle is outside the near clipping plane , And cut off , So there's a problem , Will change the shape of the triangle , Produce false shadows .

We can adjust Unity In the quality settings Shadow Near Plane Offset To solve this problem , Let the near clipping plane of light space move back , However, if this value is set high, it will cause shadow dark spots (Shadow acne), Because it also increases the space of the light direction corresponding to the shadow map . Or we can solve this problem by subdividing the large triangular surface .
Reference resources
https://docs.unity3d.com/2019.4/Documentation/Manual/ShadowPerformance.html
边栏推荐
- QT5 之信号与槽机制(演示控件自带的信号与槽函数关联)
- Logstash excludes specific files or folders from collecting report log data
- Julia constructs diagonal matrix
- The role of the symbol @ in MySQL
- Leetcode daily practice (longest substring without repeated characters)
- Yyds dry inventory solution sword finger offer: a path with a certain value in the binary tree (3)
- Introduce you to ldbc SNB, a powerful tool for database performance and scenario testing
- National food safety risk assessment center: do not blindly and unilaterally pursue "zero addition" and "pure natural" food
- P.A.R.A 方法在思源的简易应用(亲测好用)
- 泰山OFFICE技术讲座:第一难点是竖向定位
猜你喜欢

数组表示若干个区间的集合,请你合并所有重叠的区间,并返回 一个不重叠的区间数组,该数组需恰好覆盖输入中的所有区间 。【LeetCodeHot100】

防火墙基础之源NAT地址转换和服务器映射web页面配置

Leetcode daily practice (Yanghui triangle)

Popularization of MCU IO port: detailed explanation of push-pull output and open drain output

Detailed explanation of various GPIO input and output modes (push-pull, open drain, quasi bidirectional port)

继手机之后 报道称三星也削减了电视等家电产品线的产量

A robot is located in the upper left corner of an M x n grid. The robot can only move down or right one step at a time. The robot attempts to reach the lower right corner of the grid. How many differe

Redis Series 2: data persistence improves availability

Leetcode daily practice (sum of two numbers)
P. Simple application of a.r.a method in Siyuan (friendly testing)
随机推荐
The role of the symbol @ in MySQL
智慧风电 | 图扑软件数字孪生风机设备,3D 可视化智能运维
#yyds干货盘点# 解决剑指offer:二叉树中和为某一值的路径(三)
# Cesium实现卫星在轨绕行
3.2 multiple condition judgment
鸿蒙发力!HDD杭州站·线下沙龙邀您共建生态
等保三级密码复杂度是多少?多久更换一次?
如何提升IT电子设备效能管理
Introduce you to ldbc SNB, a powerful tool for database performance and scenario testing
About how vs2019c # establishes the login interface, the user name and password entered must match the records in the access database
跨域图像的衡量新方式Style relevance:论文解读和代码实战
About MySQL: the phenomenon and background of the problem
Construction and management practice of ByteDance buried point data flow
Yyds dry inventory brief chrome V8 engine garbage collection
2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
分布式Session解决方案
[pyGame games] this "eat everything" game is really wonderful? Eat them all? (with source code for free)
Detailed explanation of transaction isolation level
Leetcode daily practice (longest substring without repeated characters)
华为云首次解读云原生2.0十大典型架构,加速构建现代化应用