ps_1_1 def c0, -0.5, -0.5, -0.5, -0.5 tex t0 // t1 // Sample the base map tex t1 // t1 // Sample the gloss map tex t2 // t1 // Sample the light map tex t3 // t1 // Sample the reflection map mov r0, t0 // a1 // Move the base map into r0 lrp r0.rgb, t1, t3, r0 // a1 // Lerp between the reflection map and the base map based on the gloss map add r1, t2, c0 // a1 // Scale the additive light map value add r0.rgb, r0, r1 // a1 // Add the lightmap value to the result // Total Instructions = 4 (texture) + 4 (arithmetic)