开发者

realtime terrain lighting

开发者 https://www.devze.com 2023-03-26 02:37 出处:网络
What would be the best way to provide realtime lighting in an OpenGL terrain scene? The level of detail between of each quad will be generated dynamically as it is subdivided as it zooms in, so a pre-

What would be the best way to provide realtime lighting in an OpenGL terrain scene? The level of detail between of each quad will be generated dynamically as it is subdivided as it zooms in, so a pre-calculated light source will not work. I would like to simulate a sun on such a terrain. It doesn't have to be the 开发者_运维知识库best. It just has to look good enough. I am not familiar with shaders.


There's always Ye "Olde" Shadow Maps...e.

Though to cut down on artifacts you'll probably want Perspective Shadow Maps (PSM), Light Space Perspective Shadow Maps (LiSPSM), or Trapezoidal Shadow Maps (TSM).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号