图形学之路4:光照计算与平行光

Posted by 秦浩凯(Haokai Qin) on 2022-04-24
Estimated Reading Time 1 Minutes
Words 121 In Total
Viewed Times

目标

本节的目标是令小球具有金属的镜面光反射质感。

相关概念

光照模型

BRDF 双向反射分布函数

参考资料

Light Up

为了创建镜面反射效果,需要修改着色器,以模拟光与表面的作用。

新着色器

创建新的LitPass.hlslLit.shader着色器文件。

定义法向量与法线插值

定义表面特性

漫反射灯光

Lights

定义光照数据结构


If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !