当前位置:网站首页>Unity 渲染流水线
Unity 渲染流水线
2022-07-30 05:47:00 【Misaki_Me】
渲染流程
计算机就从一系列的顶点数据、纹理等信息出发,把这些信息最终转换成一张人眼可以看到的图像。这就是渲染流程所做的工作。
渲染流程具体可以分为三个阶段:应用阶段、几何阶段、光栅化阶段。其中每个阶段又会细分各个流程。
应用阶段
应用阶段由CPU负责,开发这对这个阶段拥有绝对的控制权。这一阶段主要有三个任务。
1. 准备好场景数据,如摄像机位置,场景中包含哪些模型、使用哪些光源等信息。
2. 进行剔除(culling)工作,将不可见的物体剔除出去。
3. 设置模型的渲染状态,这些渲染状态包括但不限于使用的材质、纹理、shader等。最终输出渲染图元给到GPU
几何阶段
几何阶段由GPU负责,将顶点坐标变换到屏幕空间中,再交给光栅器进行处理。输出顶点信息。
光栅化阶段
光栅化阶段依然由GPU负责,这一阶段使用几何阶段传递的数据来产生屏幕上的像素,并且渲染出最终的图像。
GPU渲染流水线
渲染流水线起点是CPU,即上面说到的应用阶段,应用阶段大致分为以下三个阶段:
1. 把数据加载到显存中,将所有渲染所需的数据从硬盘中加载到内存,再将网格和纹理等数据加载到显存中。
2. 设置渲染状态,即告诉GPU渲染的时候该用哪个着色器、材质、光源属性等,如果没有更改渲染状态,那么所有的网格都使用同一种渲染状态。
3. 调用DrawCall命令,这个命令指向一个需要被渲染的图元列表,而不会包含任何材质信息。当给定一个DC时,GPU就会根据渲染状态和所有输入的顶点数据来计算并最终显示像素。而这个计算过程就是GPU渲染流水线。
GPU流水线

边栏推荐
- Kunlun state screen production (serial 3) - based article (button serial port to send)
- ES6语法笔记(ES6~ES11)
- 虚拟机栈帧结构
- >>> /deep/ ::v-deep 深度作用选择器
- 给Vscode配置ESlint语法检查 — ESLint 插件自动格式化设置(实现Ctrl+S 按照ESLint规则自动格式化代码)
- 干货:线上下单应知应会,快来了解下
- Cannnot download sources不能下载源码百分百超详细解决方案
- C language, usage of qsort in library function, and explanation
- 查看 word版本号
- this的指向问题
猜你喜欢

Acwing刷题第一节

This beta version of Typora is expired, please download and install a newer; workaround
![[Punctuality Atom] Learning and use of IIC (unfinished...)](/img/b7/325cad848eacee67c56c6cad321bd0.png)
[Punctuality Atom] Learning and use of IIC (unfinished...)

VSCode hides the left activity bar

The IEEE under the specified journal search related papers

【部分项目展示】

Real-time waveform display of CAN communication data based on QT (serial eight) ==== "Sub function or new class calls ui control"
![[Jiangsu University Automation Association stm32F103c8t6] Notes [Initial 32 MCU and EXTI External Interrupt Initialization Parameter Configuration]](/img/e5/87cf293ac3d0c613864e99a8fe9a47.png)
[Jiangsu University Automation Association stm32F103c8t6] Notes [Initial 32 MCU and EXTI External Interrupt Initialization Parameter Configuration]

虚拟机栈帧结构

jvm之方法区
随机推荐
survivor区对象何时进入老年代(深入理解jvm中表述不准确的地方)
Word使用中常用的快捷键
c语言编程练习
VsCode connects to the remote server and modifies the file code
pdf和word等文档添加水印
>>> /deep/ ::v-deep 深度作用选择器
Kunlun On-state Screen Production (serial 1)---Contact
二进制到汇编:进制,原码反码补码,位运算,通用寄存器,内存一套打通
Knowledge of the day: handwritten deep copy and shallow copy (solves the problem of circular references)
This beta version of Typora is expired, please download and install a newer;解决方法
Real-time waveform display of CAN communication data based on QT (serial eight) ==== "Sub function or new class calls ui control"
xxx is not in the sudoers file.This incident will be reported error
服务器基础知识:包含基本概念,作用,服务器选择,服务器管理等(学习来自米拓建站)
antd table Summary总结栏置顶
单向链表的操作(带头结点)
led闪烁
[Jiangsu University Automation Association stm32F103c8t6] Notes [Initial 32 MCU and EXTI External Interrupt Initialization Parameter Configuration]
C language, usage of qsort in library function, and explanation
FPGA parsing B code----serial 1
51数码管显示