用Format.D24S8 不好吗?
所在版块:技术の宅 发贴时间:2005-01-11 20:01

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
if you want to dabble with HLSL, you can try the simplest case of using shadow mapping

1. write a vertex shader that computes the depth value of each pixel from the light's point of view and store the result in a shadow map

2. write a pixel shader that uses that shadow map

based on what you described, you should know in theory how it works. the HLSL implementation is merely implmentation and should be described from some online tutorials.
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

War is peace.
Freedom is slavery.
Ignorance is strength.
 相关帖子 我要回复↙ ↗回到正文
求教,关于Direct3D programming的一个问题。 zzjbug   (428 bytes , 708reads )
不懂Direct3D,但OpenGL里可以用gluUnproject做到 Sunshine   (99 bytes , 422reads )
take a look at this one SmellsLikeTeenSpirit   (55 bytes , 250reads )
用Format.D24S8 不好吗? SmellsLikeTeenSpirit   (445 bytes , 379reads )
你说的是"Shadow Z-buffer" algorithm吗? zzjbug   (570 bytes , 455reads )
具体你可以看自带的SDK documentation SmellsLikeTeenSpirit   (24 bytes , 231reads )