当前位置:网站首页>< 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(六)
< 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(六)
2022-06-12 15:45:00 【chenxiang_200108】
< 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(六)
前言
本项目希望实现一个基础渲染器,同时能够支持使用预计算。本篇文章主要讲解Accumulate具体代码。
项目地址
一、基础逻辑
为了减少噪声,我们可以将多帧的结果叠加并取平均,因为我们之前得到的单独一帧的结果是有噪声的,尤其是像素内采样数较少时。这个方法很简单,就是将之前所有帧的结果与这一帧叠加,之后将此结果除以总的帧数。虽然这个方法很简单,但是效果也不差。问题是当摄像机移动时,之前的累加结果就不能用了,一个更适合的方法是使用TAA,不过为了方便我们就用简单的方法。
二、主要功能代码
1、Pass定义
与之前各种Pass定义类似,不再重复展示。
2、Shader传入资源
3、Shader处理
总结
主要展示了Accumulate功能实现的主要代码。
边栏推荐
- ARM 64指令小记
- Divide training set, test set and verification set
- Design concept of ORM framework
- 聊聊事件监听那些事-上
- Solve log4j2 vulnerability and be attacked by mining and zombie process viruses
- 任务 输出密雪冰城主题曲 0612
- 远程操控其它电脑--详细教程
- redis String类型常见命令
- [practical case of light source] UV-LED curing innovation makes the production line more smooth
- Dongmingzhu talks about batteries: the most essential thing is safety
猜你喜欢
What is JUC in high concurrency programming
小飞页升级变智能修复Bug更快速了
5G新方案!升级现有的基站和UE模拟器至5G毫米波频段
Multi thread knowledge induction
5g new scheme! Upgrade the existing base station and UE simulator to 5g millimeter wave band
Defer learning in golang
RARP总结(TCP/IP详解卷1/2)
FPGA (III) trigger and latch
一步步创建包含自定义 Screen 的 ABAP 程序的详细步骤试读版
UDP summary (tcp/ip details volume 1/2)
随机推荐
办公室VR黄片,骚操作!微软HoloLens之父辞职!
Conversion between sparse array and array and file reading and writing
mysql Blob和Text类型
Escape analysis of golang compiler
How to use grafana to easily realize OVL data visualization
如何使用Grafana轻松实现OVL数据可视化
从斐波那契数列求和想到的俗手、本手和妙手
Differences between microservice architecture and SOA Architecture
Broadcast and multicast (tcp/ip details volume 1/2)
2021-06-20
位运算例题(待续)
Raccourci vers le nouvel environnement du carnet de notes Jupiter
MySQL开发注意事项(阿里巴巴开发手册)
Application of postman-rest client plug-in
nohup 命令使用
Servlet知识详解(2)
Great God cracked the AMD k6-2+ processor 22 years ago and opened the hidden 128KB L2 cache
The nohup command uses
jupyter notebook新環境快捷方式
Seaborn Brief