Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

529 lines
11 KiB

  1. //
  2. // Standard shaders collection
  3. //
  4. // These shaders are compiled as the following shader models:
  5. // _ps11.vcs
  6. // _ps14.vcs
  7. // _ps20.vcs
  8. // _ps20b.vcs
  9. // _vs11.vcs
  10. // _vs20.vcs
  11. //
  12. // These shaders use the old DirectX compiler.
  13. //
  14. AccumBuff4Sample_ps2x.fxc
  15. accumbuff5sample_ps2x.fxc
  16. aftershock_ps2x.fxc
  17. aftershock_vs20.fxc
  18. appchooser360movie_ps2x.fxc
  19. bik_ps11.psh
  20. bik_ps14.psh
  21. bik_ps2x.fxc
  22. bik_vs11.vsh
  23. bik_vs20.fxc
  24. Bloom_ps2x.fxc
  25. bloomadd_ps11.fxc
  26. bloomadd_ps2x.fxc
  27. BlurFilter_ps11.psh
  28. BlurFilter_ps2x.fxc
  29. BlurFilter_vs11.fxc
  30. BlurFilter_vs20.fxc
  31. BufferClearObeyStencil_ps11.psh
  32. bufferclearobeystencil_ps2x.fxc
  33. BufferClearObeyStencil_vs11.vsh
  34. bufferclearobeystencil_vs20.fxc
  35. BumpmappedEnvmap.psh
  36. BumpmappedEnvmap.vsh
  37. BumpmappedLightmap.vsh
  38. BumpmappedLightmap_OverBright2.psh
  39. bumpmappedlightmap_vs11.fxc
  40. Cable.psh
  41. Cable.vsh
  42. cable_ps2x.fxc
  43. cable_vs20.fxc
  44. cloak_blended_pass_ps2x.fxc
  45. cloak_blended_pass_vs20.fxc
  46. cloak_blended_pass_dx8_ps11.psh
  47. cloak_blended_pass_dx8_vs11.vsh
  48. cloak_ps2x.fxc
  49. cloak_vs20.fxc
  50. cloud_ps11.psh
  51. cloud_vs11.vsh
  52. cloud_ps20.fxc
  53. cloud_vs20.fxc
  54. colorcorrection_ps2x.fxc
  55. compositor_ps2x.fxc
  56. compositor_vs20.fxc
  57. constant_color_ps2x.fxc
  58. copy_fp_rt_ps2x.fxc
  59. color_projection_ps2x.fxc
  60. color_projection_vs20.fxc
  61. core_ps11.psh
  62. core_ps2x.fxc
  63. core_vs11.fxc
  64. core_vs20.fxc
  65. DebugDrawDepth_ps2x.fxc
  66. DebugDrawDepth_vs20.fxc
  67. DebugDrawEnvmapMask_ps2x.fxc
  68. DebugDrawEnvmapMask_vs20.fxc
  69. debugluxel_ps2x.fxc
  70. debugluxel_vs20.fxc
  71. debugmrttexture_ps2x.fxc
  72. debugmrttexture_vs20.fxc
  73. debugtangentspace.vsh
  74. debugtangentspace_vs11.fxc
  75. debugtangentspace_vs20.fxc
  76. DecalBaseTimesLightmapAlphaBlendSelfIllum1_ps11.psh
  77. DecalBaseTimesLightmapAlphaBlendSelfIllum2_ps11.psh
  78. decalbasetimeslightmapalphablendselfillum2_ps2x.fxc
  79. decalmodulate_ps2x.fxc
  80. depthwrite_ps2x.fxc
  81. depthwrite_vs20.fxc
  82. depthtodestalpha_vs20.fxc
  83. depthtodestalpha_ps20b.fxc
  84. Downsample_nohdr_ps11.psh
  85. Downsample_nohdr_ps2x.fxc
  86. Downsample_ps2x.fxc
  87. Downsample_vs11.fxc
  88. Downsample_vs20.fxc
  89. emissive_scroll_blended_pass_dx8_ps11.psh
  90. emissive_scroll_blended_pass_dx8_vs11.vsh
  91. emissive_scroll_blended_pass_ps2x.fxc
  92. emissive_scroll_blended_pass_vs20.fxc
  93. Engine_Post_ps2x.fxc
  94. example_model_ps20b.fxc
  95. example_model_vs20.fxc
  96. eye_refract_ps2x.fxc
  97. eye_refract_vs20.fxc
  98. Eyes.psh
  99. eyes.vsh
  100. eyes_ps2x.fxc
  101. Eyes_vs20.fxc
  102. eyes_flashlight_ps11.fxc
  103. eyes_flashlight_vs11.vsh
  104. eyes_flashlight_ps2x.fxc
  105. eyes_flashlight_vs20.fxc
  106. eyeglint_vs20.fxc
  107. eyeglint_ps2x.fxc
  108. Eyes_Overbright2.psh
  109. fillrate.psh
  110. fillrate.vsh
  111. fillrate_ps11.fxc
  112. fillrate_vs11.fxc
  113. fillrate_ps2x.fxc
  114. fillrate_vs20.fxc
  115. filmdust_ps11.fxc
  116. filmdust_ps20.fxc
  117. filmgrain_ps11.fxc
  118. filmgrain_ps20.fxc
  119. filmgrain_vs20.fxc
  120. flashlight_ps11.fxc
  121. flashlight_ps2x.fxc
  122. flesh_interior_blended_pass_dx8_ps11.psh
  123. flesh_interior_blended_pass_dx8_vs11.vsh
  124. flesh_interior_blended_pass_ps2x.fxc
  125. flesh_interior_blended_pass_vs20.fxc
  126. floatcombine_autoexpose_ps2x.fxc
  127. floatcombine_ps2x.fxc
  128. floattoscreen_notonemap_ps2x.fxc
  129. floattoscreen_ps2x.fxc
  130. floattoscreen_vanilla_ps2x.fxc
  131. haloadd_ps2x.fxc
  132. haloadd1d_ps2x.fxc
  133. haloaddoutline_ps2x.fxc
  134. HDRCombineTo16Bit_ps2x.fxc
  135. HDRCombineTo16Bit_vs20.fxc
  136. HDRSelectRange_ps2x.fxc
  137. HDRSelectRange_vs20.fxc
  138. hsl_filmgrain_pass1_ps2x.fxc
  139. hsl_filmgrain_pass2_ps2x.fxc
  140. hsv_ps2x.fxc
  141. IntroScreenSpaceEffect_ps11.fxc
  142. IntroScreenSpaceEffect_ps2x.fxc
  143. JellyFish.psh
  144. JellyFish.vsh
  145. LightingOnly.vsh
  146. LightmappedGeneric.psh
  147. LightmappedGeneric_AddBaseAlphaMaskedEnvMap.psh
  148. LightmappedGeneric_AddEnvMapMaskNoTexture.psh
  149. LightmappedGeneric_AddEnvMapNoTexture.psh
  150. LightmappedGeneric_BaseAlphaMaskedEnvMapV2.psh
  151. LightmappedGeneric_BaseTexture.psh
  152. LightmappedGeneric_BaseTexture.vsh
  153. lightmappedgeneric_basetextureblend.psh
  154. LightmappedGeneric_BaseTextureBlend.vsh
  155. LightmappedGeneric_BumpmappedEnvmap.psh
  156. LightmappedGeneric_BumpmappedEnvmap.vsh
  157. LightmappedGeneric_BumpmappedEnvmap_ps14.psh
  158. LightmappedGeneric_BumpmappedEnvmap_ps14.vsh
  159. LightmappedGeneric_BumpmappedLightmap.psh
  160. LightmappedGeneric_SSBumpmappedLightmap.psh
  161. LightmappedGeneric_BumpmappedLightmap.vsh
  162. LightmappedGeneric_BumpmappedLightmap_base_ps14.psh
  163. LightmappedGeneric_BumpmappedLightmap_base_ps14.vsh
  164. LightmappedGeneric_BumpmappedLightmap_blend_ps14.psh
  165. LightmappedGeneric_BumpmappedLightmap_blend_ps14.vsh
  166. LightmappedGeneric_Decal.psh
  167. LightmappedGeneric_Decal.vsh
  168. lightmappedgeneric_decal_ps2x.fxc
  169. lightmappedgeneric_decal_vs20.fxc
  170. LightmappedGeneric_Detail.psh
  171. LightmappedGeneric_DetailNoTexture.psh
  172. LightmappedGeneric_DetailSelfIlluminated.psh
  173. LightmappedGeneric_EnvMapNoTexture.psh
  174. LightmappedGeneric_EnvMapV2.psh
  175. lightmappedgeneric_flashlight_vs11.fxc
  176. lightmappedgeneric_flashlight_vs20.fxc
  177. LightmappedGeneric_LightingOnly.vsh
  178. LightmappedGeneric_LightingOnly_Overbright2.psh
  179. lightmappedgeneric_lightingonly_overbright2_ps11.fxc
  180. lightmappedgeneric_lightingonly_vs11.fxc
  181. LightmappedGeneric_MaskedEnvMapNoTexture.psh
  182. LightmappedGeneric_MaskedEnvMapV2.psh
  183. LightmappedGeneric_MultiplyByLighting.psh
  184. LightmappedGeneric_MultiplyByLightingNoTexture.psh
  185. LightmappedGeneric_MultiplyByLightingSelfIllum.psh
  186. LightmappedGeneric_NoTexture.psh
  187. lightmappedgeneric_ps2x.fxc
  188. LightmappedGeneric_SelfIlluminated.psh
  189. LightmappedGeneric_SelfIlluminatedEnvMapV2.psh
  190. LightmappedGeneric_SelfIlluminatedMaskedEnvMapV2.psh
  191. lightmappedgeneric_vs11.vsh
  192. lightmappedgeneric_vs20.fxc
  193. lightmappedreflective_ps2x.fxc
  194. lightmappedreflective_vs20.fxc
  195. LightmappedTranslucentTexture.psh
  196. lpreview_output_ps2x.fxc
  197. lpreview1_ps2x.fxc
  198. luminance_compare_ps2x.fxc
  199. Modulate_ps11.psh
  200. modulate_ps2x.fxc
  201. MonitorScreen.psh
  202. monitorscreen_ps2x.fxc
  203. motion_blur_vs20.fxc
  204. motion_blur_ps2x.fxc
  205. overlay_fit_ps11.psh
  206. overlay_fit_vs11.vsh
  207. particlesphere_ps11.fxc
  208. particlesphere_vs11.fxc
  209. particlesphere_ps2x.fxc
  210. particlesphere_vs20.fxc
  211. portal_ps11.fxc
  212. portal_vs11.fxc
  213. portal_ps2x.fxc
  214. portal_vs20.fxc
  215. portalstaticoverlay_ps11.fxc
  216. portalstaticoverlay_vs11.fxc
  217. portalstaticoverlay_ps2x.fxc
  218. portalstaticoverlay_vs20.fxc
  219. portal_refract_vs11.fxc
  220. portal_refract_ps11.fxc
  221. portal_refract_vs20.fxc
  222. portal_refract_ps2x.fxc
  223. predator.psh
  224. predator.vsh
  225. pyro_vision_ps2x.fxc
  226. pyro_vision_vs20.fxc
  227. Refract_model_vs11.vsh
  228. Refract_ps11.psh
  229. refract_ps2x.fxc
  230. Refract_vs20.fxc
  231. Refract_world_vs11.vsh
  232. rendertargetblit_ps2x.fxc
  233. rendertargetblit_vs20.fxc
  234. sample4x4_blend_ps2x.fxc
  235. sample4x4_ps2x.fxc
  236. sample4x4delog_ps2x.fxc
  237. sample4x4log_ps2x.fxc
  238. sample4x4maxmin_ps2x.fxc
  239. ScreenSpaceEffect.vsh
  240. screenspaceeffect_vs11.fxc
  241. screenspaceeffect_vs20.fxc
  242. sfm_combine_vs20.fxc
  243. sfm_integercombine_ps2x.fxc
  244. Shadow.psh
  245. shadow_ps14.psh
  246. shadow_vs14.vsh
  247. shadow_ps2x.fxc
  248. shadow_vs20.fxc
  249. ShadowBuildTexture.psh
  250. shadowbuildtexture_ps2x.fxc
  251. ShadowModel.psh
  252. ShadowModel.vsh
  253. shadowmodel_ps20.fxc
  254. shadowmodel_vs20.fxc
  255. ShatteredGlass.psh
  256. ShatteredGlass.vsh
  257. ShatteredGlass_EnvMap.psh
  258. ShatteredGlass_EnvMap.vsh
  259. ShatteredGlass_EnvMapSphere.vsh
  260. ShatteredGlass_ps2x.fxc
  261. ShatteredGlass_vs20.fxc
  262. DebugTextureView_vs20.fxc
  263. DebugTextureView_ps2x.fxc
  264. showz_ps2x.fxc
  265. showz_vs20.fxc
  266. skin_ps20b.fxc
  267. skin_vs20.fxc
  268. sky_ps2x.fxc
  269. sky_vs20.fxc
  270. sky_hdr_compressed_ps2x.fxc
  271. sky_hdr_compressed_rgbs_ps2x.fxc
  272. splinecard_vsxx.fxc
  273. sprite_ps11.psh
  274. sprite_vs11.vsh
  275. sprite_ps2x.fxc
  276. sprite_vs20.fxc
  277. spritecard_ps2x.fxc
  278. spritecard_vsxx.fxc
  279. spritecard_ps11.fxc
  280. SpriteRenderNormal.psh
  281. SpriteRenderTransAdd.psh
  282. SpriteRenderTransColor.psh
  283. Teeth.vsh
  284. teeth_ps2x.fxc
  285. teeth_vs20.fxc
  286. teeth_bump_ps2x.fxc
  287. teeth_bump_vs20.fxc
  288. teeth_flashlight_ps2x.fxc
  289. teeth_flashlight_vs20.fxc
  290. TreeLeaf_ps2x.fxc
  291. TreeLeaf_vs20.fxc
  292. UnlitGeneric.psh
  293. unlitgeneric_basetimesdetail.psh
  294. UnlitGeneric_BaseAlphaMaskedEnvMap.psh
  295. UnlitGeneric_Detail.psh
  296. UnlitGeneric_DetailBaseAlphaMaskedEnvMap.psh
  297. UnlitGeneric_DetailEnvMap.psh
  298. UnlitGeneric_DetailEnvMapMask.psh
  299. UnlitGeneric_DetailEnvMapMaskNoTexture.psh
  300. UnlitGeneric_DetailEnvMapNoTexture.psh
  301. UnlitGeneric_DetailNoTexture.psh
  302. UnlitGeneric_EnvMap.psh
  303. UnlitGeneric_EnvMapMask.psh
  304. UnlitGeneric_EnvMapMaskNoTexture.psh
  305. UnlitGeneric_EnvMapNoTexture.psh
  306. UnlitGeneric_LightingOnly.vsh
  307. UnlitGeneric_NoTexture.psh
  308. unlitgeneric_notexture_ps11.fxc
  309. unlitgeneric_notexture_ps2x.fxc
  310. unlitgeneric_ps2x.fxc
  311. alphadist_ps11.fxc
  312. UnlitGeneric_MaskBaseByDetailAlpha_ps11.fxc
  313. unlitgeneric_vs11.vsh
  314. unlitgeneric_vs20.fxc
  315. UnlitTwoTexture.vsh
  316. UnlitTwoTexture.psh
  317. unlittwotexture_ps2x.fxc
  318. unlittwotexture_vs20.fxc
  319. vertexlit_and_unlit_generic_bump_ps2x.fxc
  320. vertexlit_and_unlit_generic_bump_vs20.fxc
  321. vertexlit_and_unlit_generic_ps2x.fxc
  322. vertexlit_and_unlit_generic_vs20.fxc
  323. VertexLitGeneric.psh
  324. VertexLitGeneric_BaseAlphaMaskedEnvMapV2.psh
  325. VertexLitGeneric_BlendTint.psh
  326. VertexLitGeneric_Detail.psh
  327. VertexLitGeneric_Detail_LerpBase.psh
  328. VertexLitGeneric_Detail_additive.psh
  329. VertexLitGeneric_Detail_additive_selfillum.psh
  330. VertexLitGeneric_DetailBaseAlphaMaskedEnvMapV2.psh
  331. VertexLitGeneric_DetailEnvMapV2.psh
  332. VertexLitGeneric_DetailMaskedEnvMapV2.psh
  333. VertexLitGeneric_DetailNoTexture.psh
  334. VertexLitGeneric_DetailSelfIlluminated.psh
  335. VertexLitGeneric_DetailSelfIlluminatedEnvMapV2.psh
  336. VertexLitGeneric_DetailSelfIlluminatedMaskedEnvMapV2.psh
  337. VertexLitGeneric_EnvMapNoTexture.psh
  338. VertexLitGeneric_EnvmappedBumpmap_NoLighting.vsh
  339. VertexLitGeneric_EnvmappedBumpmap_NoLighting_ps14.vsh
  340. VertexLitGeneric_EnvmappedBumpmapV2.psh
  341. VertexLitGeneric_EnvmappedBumpmapV2_MultByAlpha.psh
  342. VertexLitGeneric_EnvmappedBumpmapV2_MultByAlpha_ps14.psh
  343. VertexLitGeneric_EnvmappedBumpmapV2_ps14.psh
  344. VertexLitGeneric_EnvMapV2.psh
  345. vertexlitgeneric_flashlight_vs11.vsh
  346. vertexlitgeneric_lightingonly_overbright2.psh
  347. vertexlitgeneric_lightingonly_overbright2_ps11.fxc
  348. VertexLitGeneric_MaskedEnvMapNoTexture.psh
  349. VertexLitGeneric_MaskedEnvMapV2.psh
  350. VertexLitGeneric_NoTexture.psh
  351. VertexLitGeneric_SelfIlluminated.psh
  352. VertexLitGeneric_SelfIlluminatedEnvMapV2.psh
  353. VertexLitGeneric_SelfIlluminatedMaskedEnvMapV2.psh
  354. VertexLitGeneric_SelfIllumOnly.vsh
  355. vertexlitgeneric_vs11.vsh
  356. VertexLitTexture.psh
  357. VertexLitTexture_Overbright2.psh
  358. volume_clouds_vs20.fxc
  359. volume_clouds_ps2x.fxc
  360. vortwarp_ps11.psh
  361. vortwarp_ps2x.fxc
  362. vortwarp_vs11.vsh
  363. vortwarp_vs20.fxc
  364. vr_distort_hud_ps2x.fxc
  365. vr_distort_hud_vs20.fxc
  366. vr_distort_texture_ps2x.fxc
  367. vr_distort_texture_vs20.fxc
  368. warp_ps2x.fxc
  369. warp_vs20.fxc
  370. Water_vs11.vsh
  371. Water_ps14.psh
  372. Water_ps14.vsh
  373. water_ps2x.fxc
  374. Water_vs20.fxc
  375. WaterCheap_ps11.psh
  376. WaterCheap_vs11.vsh
  377. WaterCheap_ps14.psh
  378. WaterCheap_vs14.vsh
  379. WaterCheap_ps2x.fxc
  380. WaterCheap_vs20.fxc
  381. WaterCheapFresnel_ps14.psh
  382. WaterCheapFresnelOpaque_ps14.psh
  383. WaterCheapNoFresnel_ps11.psh
  384. WaterCheapNoFresnelOpaque_ps11.psh
  385. WaterCheapOpaque_ps11.psh
  386. WaterCheapOpaque_ps14.psh
  387. WaterCheapPerVertexFresnel_vs11.vsh
  388. WaterReflect_ps11.psh
  389. WaterRefract_ps11.psh
  390. WaterRefractFresnel_ps11.psh
  391. weapon_sheen_pass_ps2x.fxc
  392. weapon_sheen_pass_vs20.fxc
  393. white.psh
  394. white_ps2x.fxc
  395. windowimposter_ps11.fxc
  396. windowimposter_vs11.fxc
  397. windowimposter_ps2x.fxc
  398. windowimposter_vs20.fxc
  399. WorldTexture.psh
  400. WorldTwoTextureBlend.psh
  401. WorldTwoTextureBlend_DetailAlpha.psh
  402. worldtwotextureblend_ps2x.fxc
  403. WorldTwoTextureBlend_SelfIlluminated.psh
  404. WorldVertexAlpha.psh
  405. WorldVertexAlpha.vsh
  406. WorldVertexAlpha_ps2x.fxc
  407. WorldVertexTransition.psh
  408. WorldVertexTransition.vsh
  409. WorldVertexTransition_ps14.psh
  410. WorldVertexTransition_vs14.vsh
  411. WorldVertexTransition_Seamless.psh
  412. WorldVertexTransition_Seamless.vsh
  413. WorldVertexTransition_BlendBase2.psh
  414. WorldVertexTransition_Editor.psh
  415. writevertexalphatodestalpha_ps11.fxc
  416. writevertexalphatodestalpha_vs11.fxc
  417. writez.vsh
  418. writez_vs20.fxc
  419. yuv.psh