ps_2_0
// intersect a sphere
// line origin in tex0, direction in tex1
// sphere position in t2.xyz, square of radius in t2.w
// index of sphere in v0 (color value) - max 255 !!
// outputs index of sphere in blue component
// outputs distance in green component
// output buffer format should be A32R32G32B32F
def c5,4,2,-2,10000
def c6,0.01,1,0,0
def c7,-128,-128,-128,0
def c8,256,256,256,256
def c9,0,0.01,1.0,0
dcl t0
dcl t1
dcl t2
dcl v0
dcl_2d s0
dcl_2d s1
//texld r0,t0,s0
//texld r1,t1,s1
//add r0,r0,r1
mov oC0,v0
