游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1794|回复: 1

deferred shading 如何使用 normal mapping

[复制链接]

9

主题

132

帖子

145

积分

注册会员

Rank: 2

积分
145
QQ
发表于 2010-5-12 08:24:00 | 显示全部楼层 |阅读模式
   normal mapping 在deffered shading中使用是不是挺难的。

           1. g buffer中存world normal 或 view space normal,
              把tangent space normal变换到world sapce 或 view space,
              这样要在ps中变换。

           2. g buffer中存储tangent.
              增加了g buffer, 还有就是如何处理没有normal mapping的物体.

           3. 有normal mapping物体不使用defferred shading

227

主题

1794

帖子

1866

积分

金牌会员

Rank: 6Rank: 6

积分
1866
发表于 2010-5-12 10:53:00 | 显示全部楼层

Re:deferred shading 如何使用 normal mapping

无论有没有normal mapping,你计算光照的时候总要有normal,所有的normal都转为view space存g buffer
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-9 15:49

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表