当前位置:网站首页>Graphics rendering pipeline
Graphics rendering pipeline
2022-06-26 02:04:00 【_ Bruce】
Several render stages of the graphics rendering pipeline :

The first part of the graphics rendering pipeline is Vertex shader (Vertex Shader), It takes a single vertex as input . The main purpose of vertex shaders is to transform 3D The coordinates change to another 3D coordinate ( It will be explained later ), At the same time, vertex shaders allow us to do some basic processing of vertex attributes .
Primitive Assembly (Primitive Assembly) Phase takes all vertices output by the vertex shader as input ( If it is GL_POINTS, So it's a vertex ), And all the points are assembled into the shape of the specified element ; The example in this section is a triangle .
The output of the element assembly phase is passed to the geometry shader (Geometry Shader). Geometry shaders take a set of vertices in the form of primitives as input , It can construct new... By generating new vertices ( Or something else ) Elements to create other shapes . In the example , It makes another triangle .
Geometry shaders The output of the is passed into the rasterization phase (Rasterization Stage), Here it maps the primitives to the corresponding pixels on the final screen , Generate for Fragment Shader (Fragment Shader) The fragments used (Fragment). Clipping is performed before the fragment shader runs (Clipping). Clipping discards all pixels beyond your view , To improve the efficiency of execution .
OpenGL One of the clips in is OpenGL All the data needed to render a pixel .Fragment Shader The main purpose of is to calculate the final color of a pixel , This is all OpenGL Where high-level effects come from . Usually , Fragment shaders contain 3D Scene data ( Like light 、 shadow 、 The color of light and so on ), This data can be used to calculate the final pixel color .
After all corresponding color values are determined , The final object will be passed to the last stage , We call it Alpha Testing and mixing (Blending) Stage . This stage detects the corresponding depth of the fragment ( And template (Stencil)) value ( The back can speak ), Use them to determine whether the pixel is in front of or behind other objects , Decide whether you should discard . This stage will also check alpha value (alpha Value defines the transparency of an object ) And mix the objects (Blend). therefore , Even if the color output of a pixel is calculated in the clip shader , When rendering multiple triangles, the final pixel color may also be completely different .
边栏推荐
- LeetCode 31 ~ 40
- Detailed explanation of WiFi related knowledge
- 程序 编译的步骤 预编译 编译 汇编 连接
- PTA class a simulated first bomb: 1132-1135
- Detailed explanation of memory leak check tools
- The 19th - 22nd week of scientific research training - about tnet and memnet
- 标定。。。
- Differences and functions of TOS cos DSCP
- weishi相机显示
- SDRAM控制器——添加读写FIFO
猜你喜欢

cv==biaoding---open----cv001

Chrome浏览器开发者工具使用

通俗易懂C语言关键字static

About vs scanf, 'scanf' appears: this function or variable may be unsafe Solutions to the problem of consumer usi

图形渲染管线

One stop solution EMQ for hundreds of millions of communication of Internet of things

轻轻松松理解指针

V4L2+QT视频优化策略

General introduction to gun make (2)

jenkins汉化及汉化无效解决方案
随机推荐
Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) D. Felicity‘s Big Secret Revealed
如何制定一个可实现的年度目标?
About vs scanf, 'scanf' appears: this function or variable may be unsafe Solutions to the problem of consumer usi
tos cos dscp 区别和作用
Easyexcel read file
输入3个整数,从大到小输出出来
标定。。。
memory leak check tools 详解
Calibration...
Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) C. Felicity is Coming!
Connecting the projector
The answer skills and examples of practical cases of the second construction company are full of essence
启牛推荐的证券账户安全吗?
Show spirit chenzitong was invited to be the chief experience officer of the global finals of the sixth season perfect children's model
如何高效的完成每日的任务?
Record a weird picture upload problem
Gun make (7) execute make
记录一个诡异的图片上传问题
-- EGFR FISH probe solution
Chrome浏览器开发者工具使用