当前位置:网站首页>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
边栏推荐
- Which financial products will yield high returns in 2022?
- Interview question 01.02 Determine whether it is character rearrangement - auxiliary array algorithm
- Use camunda to do workflow design and reject operations
- [开源] .Net ORM 访问 Firebird 数据库
- Lingyun going to sea | saihe & Huawei cloud: jointly help the sustainable development of cross-border e-commerce industry
- 强化学习-学习笔记9 | Multi-Step-TD-Target
- npm uninstall和rm直接删除的区别
- 建立自己的网站(18)
- How to make agile digital transformation strategy for manufacturing enterprises
- Ant destination multiple selection
猜你喜欢
![[200 opencv routines] 223 Polygon fitting for feature extraction (cv.approxpolydp)](/img/1e/055df228853d9b464fc4bcbde0a7ee.png)
[200 opencv routines] 223 Polygon fitting for feature extraction (cv.approxpolydp)

【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式

Use blocconsumer to build responsive components and monitor status at the same time

What if the win11u disk does not display? Solution to failure of win11 plug-in USB flash disk

Debugging and handling the problem of jamming for about 30s during SSH login

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?

Qt编写物联网管理平台39-报警联动

Embedded development: how to choose the right RTOS for the project?

Two kinds of updates lost and Solutions

【JDBC Part 1】概述、获取连接、CRUD
随机推荐
Codemail auto collation code of visual studio plug-in
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?
Code of "digital image processing principle and Practice (matlab version)" part2[easy to understand]
怎样写一个增广矩阵到txt文件中
South China x99 platform chicken blood tutorial
【colmap】稀疏重建转为MVSNet格式输入
大数据开源项目,一站式全自动化全生命周期运维管家ChengYing(承影)走向何方?
Ad domain group policy management
你可曾迷茫?曾经的测试/开发程序员,懵懂的小菜C鸟升级......
An in-depth understanding of fp/fn/precision/recall
Why can't win11 display seconds? How to solve the problem that win11 time does not display seconds?
Solve the problem of uni in uni app Request sent a post request without response.
Use camunda to do workflow design and reject operations
MIT6.S081-Lab9 FS [2021Fall]
Win11如何解禁键盘?Win11解禁键盘的方法
强化学习-学习笔记9 | Multi-Step-TD-Target
用语雀写文章了,功能真心强大!
NVR硬盤錄像機通過國標GB28181協議接入EasyCVR,設備通道信息不顯示是什麼原因?
Meta force force meta universe system development fossage model
使用 BlocConsumer 同时构建响应式组件和监听状态