当前位置:网站首页>API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
2022-07-06 10:36:00 【hankern】
Set texture filtering mode .
1、GL_TEXTURE_MIN_FILTER
GL_TEXTURE_MIN_FILTER Value GL_NEAREST GL_LINEAR GL_NEAREST_MIPMAP_NEAREST GL_LINEAR_MIPMAP_NEAREST GL_NEAREST_MIPMAP_LINEAR GL_LINEAR_MIPMAP_LINEAR, Default GL_NEAREST_MIPMAP_LINEA
2、GL_TEXTURE_MAG_FILTER
GL_TEXTURE_MAG_FILTER Value GL_NEAREST GL_LINEAR, Default GL_LINEAR.
Used when sampling from texture “ Detail level ” When the function determines that the texture should be imaged , Will use “ Texture magnification ” function . It sets the texture magnification function to GL_NEAREST or GL_LINEAR.GL_NEAREST Often than GL_LINEAR faster , But it can generate texture images with sharper edges , Because the transition between texture elements is not so smooth .GL_ texture _MAG_ The initial value of the filter is GL_ linear .
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
边栏推荐
猜你喜欢
Mysql27 index optimization and query optimization
Redis集群方案应该怎么做?都有哪些方案?
该不会还有人不懂用C语言写扫雷游戏吧
What is the current situation of the game industry in the Internet world?
How to make shell script executable
基于Pytorch肺部感染识别案例(采用ResNet网络结构)
Use xtrabackup for MySQL database physical backup
实现微信公众号H5消息推送的超级详细步骤
Case identification based on pytoch pulmonary infection (using RESNET network structure)
MySQL28-数据库的设计规范
随机推荐
What is the difference between TCP and UDP?
Advantages and disadvantages of evaluation methods
[paper reading notes] - cryptographic analysis of short RSA secret exponents
Implement context manager through with
16 medical registration system_ [order by appointment]
Record the first JDBC
C miscellaneous lecture continued
Typescript入门教程(B站黑马程序员)
Security design verification of API interface: ticket, signature, timestamp
MySQL实战优化高手09 生产经验:如何为生产环境中的数据库部署监控系统?
Simple solution to phpjm encryption problem free phpjm decryption tool
Global and Chinese market of wafer processing robots 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL real battle optimization expert 08 production experience: how to observe the machine performance 360 degrees without dead angle in the process of database pressure test?
A necessary soft skill for Software Test Engineers: structured thinking
Isn't there anyone who doesn't know how to write mine sweeping games in C language
First blog
第一篇博客
13 medical registration system_ [wechat login]
MySQL storage engine
Pytorch LSTM实现流程(可视化版本)