From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- .../LightmappedGeneric_AddBaseAlphaMaskedEnvMap.psh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 materialsystem/stdshaders/LightmappedGeneric_AddBaseAlphaMaskedEnvMap.psh (limited to 'materialsystem/stdshaders/LightmappedGeneric_AddBaseAlphaMaskedEnvMap.psh') diff --git a/materialsystem/stdshaders/LightmappedGeneric_AddBaseAlphaMaskedEnvMap.psh b/materialsystem/stdshaders/LightmappedGeneric_AddBaseAlphaMaskedEnvMap.psh new file mode 100644 index 0000000..b31054c --- /dev/null +++ b/materialsystem/stdshaders/LightmappedGeneric_AddBaseAlphaMaskedEnvMap.psh @@ -0,0 +1,17 @@ +ps.1.1 + +;------------------------------------------------------------------------------ +; Draw a texture . . woo hoo! +; t0 - texture +; +; The texture coordinates need to be defined as follows: +; tc0 - texcoords +; c2 - envmaptint +;------------------------------------------------------------------------------ + +tex t2 ; cube map +tex t3 ; envmap mask + +mul r0.rgb, t2, 1-t3.a +mul r0.rgb, c2, r0 ; apply the envmaptint ++ mul r0.a, c2.a, v0.a -- cgit v1.2.3