shadowmapps.txt

来自「游戏中我们经常看到的影子效果」· 文本 代码 · 共 10 行

TXT
10
字号
//Pixel shader for shadow mapping
//Does (diffuse+specular)*tex0
//Believe it or not, this is not possible without pixel shaders, since in D3D the specular
//component is always added after the texture stages.

ps.1.1			//version 1.1
tex t0			//sample shadow map

add r1, v0, v1	//r1=diffuse+specular
mul r0, r1, t0	//r0=(diffuse+specular)*shadow map

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?