一个简单的PBR/IBL渲染器 纯 C++/OpenGL ES3实现
参考:
https://github.com/FrMarchand/pbr-material-viewer
https://github.com/JoshuaSenouf/gl-engine
https://github.com/ragnraok/AndroidPBR
-
通过HDR贴图生成cubmap贴图实现基于环境的光照,图片资源来自 (hdrlabs免费资源网站).
-
手动调整材质贴图缩放比列和displacement 贴图高度大小。
-
触摸旋转相机360°观察材质
项目需要kotlin、C++能力和opengl高级编程知识。
- kotlin学习网站:https://www.kotlincn.net/
- C++学习网站:https://www.runoob.com/cplusplus/cpp-tutorial.html
- PBR知识理论:https://learnopengl-cn.github.io/07%20PBR/01%20Theory/
- PBR光照:https://learnopengl-cn.github.io/07%20PBR/02%20Lighting/
- 漫反射辐照:https://learnopengl-cn.github.io/07%20PBR/03%20IBL/01%20Diffuse%20irradiance/
- 镜面IBL:https://learnopengl-cn.github.io/07%20PBR/03%20IBL/02%20Specular%20IBL/
- Android Studio 2020.3.1.RC1
- NDK 21.2.6472646
- OpenGL 3.0 ES
- CMake 3.4+
git clone https://github.com/lianglei1/Android-PBR.git