当前位置:网站首页>API learning of OpenGL (2002) smooth flat of glsl
API learning of OpenGL (2002) smooth flat of glsl
2022-07-06 10:36:00 【hankern】
use flat When coloring ,OpenGL The color of a vertex in the entity will be used to render the entire entity , Usually, the color of the first or last vertex of the entity will be selected as the color of the entity .
In the use of smooth When coloring ,OpenGL The color of each vertex in the entity will be processed independently . For segment entities , The color of each point on the line segment will be obtained by interpolation according to the color of the two vertices . For polygon primitives , The color of the inner region of the polygon will be interpolated according to the color of all vertices .
1、smooth Of glsl
The vertices
smooth out vec3 FrontColor;
smooth out vec3 BackColor;fragment
smooth in vec3 FrontColor;
smooth in vec3 BackColor;effect

2、flat Of glsl
The vertices
flat out vec3 FrontColor;
flat out vec3 BackColor;fragment
flat in vec3 FrontColor;
flat in vec3 BackColor;effect

边栏推荐
- How to build an interface automation testing framework?
- Google login prompt error code 12501
- MySQL learning diary (II)
- Time in TCP state_ The role of wait?
- 保姆级手把手教你用C语言写三子棋
- Windchill configure remote Oracle database connection
- Typescript入门教程(B站黑马程序员)
- Implement sending post request with form data parameter
- Export virtual machines from esxi 6.7 using OVF tool
- Use xtrabackup for MySQL database physical backup
猜你喜欢

MySQL33-多版本并发控制

MySQL实战优化高手02 为了执行SQL语句,你知道MySQL用了什么样的架构设计吗?

ByteTrack: Multi-Object Tracking by Associating Every Detection Box 论文阅读笔记()

用于实时端到端文本识别的自适应Bezier曲线网络

MySQL30-事务基础知识
![[C language] deeply analyze the underlying principle of data storage](/img/d6/1c0cd38c75da0d0cc1df7f36938cfb.png)
[C language] deeply analyze the underlying principle of data storage
![13 medical registration system_ [wechat login]](/img/c9/05ad1fc86e02cf51a37c9331938b0a.jpg)
13 medical registration system_ [wechat login]

If someone asks you about the consistency of database cache, send this article directly to him

MySQL实战优化高手03 用一次数据更新流程,初步了解InnoDB存储引擎的架构设计

Mysql27 index optimization and query optimization
随机推荐
MySQL21-用户与权限管理
Global and Chinese markets for aprotic solvents 2022-2028: Research Report on technology, participants, trends, market size and share
C miscellaneous dynamic linked list operation
Not registered via @enableconfigurationproperties, marked (@configurationproperties use)
Water and rain condition monitoring reservoir water and rain condition online monitoring
Mysql23 storage engine
MySQL Real Time Optimization Master 04 discute de ce qu'est binlog en mettant à jour le processus d'exécution des déclarations dans le moteur de stockage InnoDB.
Isn't there anyone who doesn't know how to write mine sweeping games in C language
Mysql27 - Optimisation des index et des requêtes
软件测试工程师发展规划路线
Export virtual machines from esxi 6.7 using OVF tool
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
解决在window中远程连接Linux下的MySQL
Security design verification of API interface: ticket, signature, timestamp
Use JUnit unit test & transaction usage
MySQL storage engine
保姆级手把手教你用C语言写三子棋
第一篇博客
[after reading the series] how to realize app automation without programming (automatically start Kwai APP)
Mysql30 transaction Basics