ps.1.1

tex t0	;RGB: terrain color & lightmap, A: details mask
tex t1	;RGB: color detail (grass), A: mono detail (road)
tex t2	;RGB: front detail
tex t3	;RGB: side detail

	lrp	r0, v0.a, t3, t2		;blending side details

	lrp r1, t0.a, t1.a, t1		;blending top details

	lrp r0, v0, r1, r0			;blending side & top details

	mul r0, r0, t0				;apply terrain color

