ps.1.1

tex t0	;RGB: terrain color & lightmap
tex t1	;RGB: mono details
tex t2	;RGB: details mask, A: cubemap mask
tex t3	;RGB: cubemap

	dp3	r0, t1, t2

	mul	r0.rgb, r0.a, t0
	+mul r0.a, t2.a, 1-t1.b

	mad_sat r0, r0.a, t3, r0
