diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/modeldiffusebump2.psh | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'materialsystem/stdshaders/modeldiffusebump2.psh')
| -rw-r--r-- | materialsystem/stdshaders/modeldiffusebump2.psh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/modeldiffusebump2.psh b/materialsystem/stdshaders/modeldiffusebump2.psh new file mode 100644 index 0000000..2419627 --- /dev/null +++ b/materialsystem/stdshaders/modeldiffusebump2.psh @@ -0,0 +1,33 @@ +ps.1.1 + +; base texture +tex t0 + +; normalmap +tex t1 + +; rgb - color for first axis - gamma converted to 2.2 in the vertex shader +texcoord t2 + +; rgb - color for second axis - gamma converted to 2.2 in the vertex shader +texcoord t3 + +; v0.rgb : color for third axis - gamma converted to 2.2 in the vertex shader + +; c0, c1, c2 - Axes of the lightmap coordinate system in tangent space + +dp3_sat r1.rgb, t1_bx2, c0 ++mov r0.a, t0 +mul r0.rgb, r1, t2 + +dp3_sat r1.rgb, t1_bx2, c1 +mad r0.rgb, r1, t3, r0 + +dp3_sat r1.rgb, t1_bx2, c2 +mad r0.rgb, r1, v0, r0 + +;mov_x2 r0.rgb, r0 +mul_x2 r0.rgb, r0, t0 + + + |