⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shadowmapps.txt

📁 游戏中我们经常看到的影子效果
💻 TXT
字号:
//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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -