# introduction
- 之前有个coarse pixel shading,大概就是在变化不大的区域可以一块是一次计算。主要是省电
- 似乎这个在forward已经有较好的解决方案了
- 在3个level来shading
- coarse pixel 2x2 block
- pixel
- sample
- 有人提出过deferred corse pixel
- 用computed shader,work well with msaa
- gbuffer是msaa分辨率的,有derivative
- 然后找出哪些要以什么分辨率来shade at sample rate
# 31.3 algorithm
## 31.3.1 G-buffer generation
- 除了不同gbuffer的东西外,还存了derivate of view-space Z
```
struct GBuffer
{
float4 normal_specular; //normal and specular power/intensity
float4 albedo;
float4 biased_albedo; //albedo sampled with biased sampler
float2 positionZGrad; //ddx ddy of view space z
float positionZ; //view space Z
}
```
## 31.3.2 shading pass
- 使用comput

本文介绍了延迟粗像素着色方法,通过Compute Shader优化MSAA下的着色过程,利用G-buffer的视空间Z梯度信息分析像素相似性,减少不必要的像素着色,提升性能。在光照贴图阶段,采用粗像素区域处理和微调采样器偏置来减少闪烁伪影。然而,额外的G-buffer组件会带来约2ms的性能开销。
最低0.47元/天 解锁文章
900

被折叠的 条评论
为什么被折叠?



