Fork me on GitHub
摘要: PBR-Book Ch5 Color and Radiometry Color and Radiometry (pbr-book.org) In orderto precisely describe how light is represented and sampled to compute im 阅读全文
posted @ 2024-09-02 20:08 icewalnut 阅读(7) 评论(0) 推荐(0) 编辑
摘要: PBR-Book Ch8 Reflection Models Reflection Models (pbr-book.org) 球坐标系中,使用 \((\theta, phi)\) \(\theta\) given direction to the \(z\) axis \(\phi\) the a 阅读全文
posted @ 2024-09-02 14:31 icewalnut 阅读(5) 评论(0) 推荐(0) 编辑
摘要: UE Shader 解读系列(一) ShadingCommon.ush 本文基于 UE 5.3.2 是对 ChatGPT 给的解释进行的 copy ,不一定正确 ShadingCommon.ush 包含了 UE 的 shader 编写相关的基础定义和工具函数 1. 宏定义与条件编译 #ifndef 阅读全文
posted @ 2024-08-23 18:53 icewalnut 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 浅析 PBR/BRDF 过了几个月之后,还是将文章名改为浅析。什么深入理解,完全看懂。。。开玩笑,完全看不懂好嘛 -_-||| 知乎- 彻底看懂 PBR/BRDF 本文是在上文的基础上进行的增减 实时渲染中的 PBR 方程是这样的 \[L_o= \displaystyle \int_\Omega f 阅读全文
posted @ 2024-07-24 20:30 icewalnut 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 透视投影矩阵的推导 本文完全 copy 自 透视投影矩阵的推导 - bluebean - 博客园 (cnblogs.com) 只是用 markdown 将公式全部又打了一遍 图1: View Frustum Perspective Projection Matrix 的任务就是把位于视锥体内的物体的 阅读全文
posted @ 2024-06-19 20:34 icewalnut 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 现代 C++ 中的一次函数调用的工作流程 ChatGPT 4o 给的答案: 函数声明解析 编译器首先解析函数调用,确定要调用的函数。这包括 名称查找、重载解析和模板实例化。 参数传递 编译器检查传递的参数与函数签名是否匹配。如果有隐式类型转换,编译器会进行必要的类型转换。 函数调用时,参数可以通过 阅读全文
posted @ 2024-06-17 10:14 icewalnut 阅读(5) 评论(0) 推荐(0) 编辑
摘要: C++ 栈帧 Stack Frame 参考文献: [引擎开发] 深入C++内存管理 ChatGPT 4o 1. 栈帧是什么 栈帧是调用栈上的一个数据结构,用于存储函数调用的相关信息,包括: 函数的参数 传递给函数的参数 返回地址 函数返回时应该跳转到的地址 局部变量 函数内部定义的变量 保存的寄存器 阅读全文
posted @ 2024-06-17 10:12 icewalnut 阅读(21) 评论(0) 推荐(0) 编辑
摘要: INTERNAL_SHADER_PARAMETER_EXPLICIT 为什么了解这个宏,看另一篇 《UE5 MobileBasePassPixelShader.usf》 这里详细了解一下这个宏,不感兴趣的可以跳过,知道这个宏用于 声明在统一缓冲区 (Uniform Buffer Object, UB 阅读全文
posted @ 2024-05-22 15:43 icewalnut 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 地形 SplattingMap 采样 HLSL Demo Fetching splatting index Translate it into a local cache index Sample all the pbr textures from the cache 使用 ChatGPT 写一个 阅读全文
posted @ 2024-03-21 11:11 icewalnut 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 移动端渲染设置总结 1. 阴影马赛克问题 调整渲染设置 r.shadowquality=3 移动平台的照明 - 官方文档 2. 部分贴图马赛克问题 SamplerSource 改成 Shared:Wrap? 3. 远景闪烁问题 [/Script/Engine.Engine] NearClipPlan 阅读全文
posted @ 2024-01-30 22:22 icewalnut 阅读(228) 评论(0) 推荐(0) 编辑