当前位置:网站首页>QT & OpenGL lighting
QT & OpenGL lighting
2022-07-28 18:59:00 【Days_ It's not on yet】
One 、 Color
Light control in shaders

The color of the light 、 The color of the object Multiply components


Shader writing , Will be the first 0 The value of an index Read in Put it in apos


After the shader pipeline has been successfully connected , Binding enables pipelining

Usage mode ?????

Displacement , Change to camera coordinates , tailoring

Two 、 Add light source









3、 ... and 、 Feng's illumination model


Feng's illumination model Code implementation , Simple point light No attenuation


Diffuse light , Normal required Calculate angle , Each vertex has a normal value


The front is The vertices , Followed by vertex normals

anormal Normal value , Outgoing normal matrix

normalize ( Basis, ) Change the length to 1, Unit vector , Go to one 0-1 The vector between When less than 0 When take 0

Highlight effect


Reflected light and The angle between human eyes or cameras 

Normal vector in case of non proportional scaling 

Four 、 texture of material




5、 ... and
6、 ... and
7、 ... and
8、 ... and
Nine
边栏推荐
- Is there a future for changing careers in learning software testing?
- Two month software testing training scam? How to choose training institutions?
- EasyCVR新版本级联时,下级平台向上传递层级目录显示不全的原因分析
- [GXYCTF2019]StrongestMind
- Mongodb initialization
- How new people get started learning software testing
- 2022.7.26 constructor, interview: the role of new, deep copy and shallow copy
- Introduction and advanced MySQL (4)
- Golang concurrent lock
- Xiaobai must see the development route of software testing
猜你喜欢

Example of observer mode of C -- ordering milk

Introduction and advanced level of MySQL (6)

Why app uses JSON protocol to interact with server: serialization related knowledge

112. Use the self-developed proxy server to solve the cross domain access error encountered when uploading files by SAP ui5 fileuploader

Cause analysis and solution of video jam after easycvr is connected to the device

MYSQL入门与进阶(一)

Meta Q2 earnings: revenue fell for the first time, and metaverse will compete with apple

现代化个人博客系统 ModStartBlog v5.4.0 登录界面改版,新增联系方式

MYSQL入门与进阶(七)

My creation anniversary -- July 25th, 2022
随机推荐
数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
MYSQL入门与进阶(一)
湖上建仓全解析:如何打造湖仓一体数据平台 | DEEPNOVA技术荟系列公开课第四期
Swiftui swift forward geocoding and reverse geocoding (tutorial with source code)
Is the software testing industry really saturated?
How big is it suitable for learning software testing?
When the new version of easycvr is linked at the same level, the subordinate platform passes up the cause analysis of the incomplete display of the hierarchical directory
Unity 之 切换语言导致报错:System.FormatException:String was not recognized as a valid DateTime.
2022 Hangdian multi school field 2 1011 DOS card (line segment tree)
Two month software testing training scam? How to choose training institutions?
Redis缓存雪崩、穿透、击穿,布隆过滤器,分布式锁详解
kotlin:out in
LeetCode_ 96_ Different binary search trees
LeetCode_ 343_ integer partition
If you want to change to it, does it really matter if you don't have a major?
2022杭电多校第二场1011 DOS Card(线段树)
112. 使用自开发的代理服务器解决 SAP UI5 FileUploader 上传文件时遇到的跨域访问错误
Why app uses JSON protocol to interact with server: serialization related knowledge
How to solve the problem that easycvr device cannot be online again after offline?
2022年牛客多校第2场 J . Link with Arithmetic Progression (三分+枚举)