当前位置:网站首页>OpeGL personal notes - lights
OpeGL personal notes - lights
2022-07-07 22:09:00 【qq_ fifty-seven million two hundred and fifty-one thousand thre】
#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aNormal;
layout (location = 2) in vec2 aTexCoords;out vec3 FragPos;
out vec3 Normal;
out vec2 TexCoords;uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;void main()
{
FragPos = vec3(model * vec4(aPos, 1.0));
Normal = mat3(transpose(inverse(model))) * aNormal;
TexCoords = aTexCoords;
gl_Position = projection * view * vec4(FragPos, 1.0);
}
#version 330 core
out vec4 FragColor;struct Material {
sampler2D diffuse;
sampler2D specular;
sampler2D face;
float shininess;
};struct DirLight {
vec3 direction;vec3 ambient;
vec3
边栏推荐
- Qt编写物联网管理平台39-报警联动
- #DAYU200体验官#MPPT光伏发电项目 DAYU200、Hi3861、华为云IotDA
- Win11U盘不显示怎么办?Win11插U盘没反应的解决方法
- 双塔模型的最强出装,谷歌又开始玩起“老古董”了?
- [开源] .Net ORM 访问 Firebird 数据库
- Jerry's test box configuration channel [chapter]
- 强化学习-学习笔记9 | Multi-Step-TD-Target
- How much does it cost to develop a small program mall?
- How does win11 time display the day of the week? How does win11 display the day of the week today?
- Reinforcement learning - learning notes 9 | multi step TD target
猜你喜欢
客户案例|华律网,通过观测云大幅缩短故障定位时间
Have you ever been confused? Once a test / development programmer, ignorant gadget C bird upgrade
NVR hard disk video recorder is connected to easycvr through the national standard gb28181 protocol. What is the reason why the device channel information is not displayed?
建立自己的网站(18)
PDF文档签名指南
三元表达式、各生成式、匿名函数
An overview of the latest research progress of "efficient deep segmentation of labels" at Shanghai Jiaotong University, which comprehensively expounds the deep segmentation methods of unsupervised, ro
Crawler (17) - Interview (2) | crawler interview question bank
Kirin Xin'an operating system derivative solution | storage multipath management system, effectively improving the reliability of data transmission
Ten thousand word summary data storage, three knowledge points
随机推荐
Ten thousand word summary data storage, three knowledge points
用语雀写文章了,功能真心强大!
Automatic classification of defective photovoltaic module cells in electronic images
The latest Android interview collection, Android video extraction audio
The essence of analog Servlet
L2: current situation, prospects and pain points of ZK Rollup
【colmap】稀疏重建转为MVSNet格式输入
建立自己的网站(18)
【Azure微服务 Service Fabric 】因证书过期导致Service Fabric集群挂掉(升级无法完成,节点不可用)
Crawler (17) - Interview (2) | crawler interview question bank
The strongest installation of the twin tower model, Google is playing "antique" again?
为什么Win11不能显示秒数?Win11时间不显示秒怎么解决?
Oracle advanced (VI) Oracle expdp/impdp details
Reinforcement learning - learning notes 8 | Q-learning
Redis - basic use (key, string, list, set, Zset, hash, geo, bitmap, hyperloglog, transaction)
null == undefined
Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cyclic functions [chapter]
Display optimization when the resolution of easycvr configuration center video recording plan page is adjusted
DNS series (I): why does the updated DNS record not take effect?
Reinforcement learning - learning notes 9 | multi step TD target