|
Re: terrain multitexturing shader
[Re: Zio]
#17310
12/04/03 20:56
12/04/03 20:56
|
Joined: May 2002
Posts: 7,441
ventilator
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2002
Posts: 7,441
|
oh, thanks ace! i thought a gf3 is basically the same as a gf4?
i think in order to convert this shader to ps 1.1 you will have to change:
lrp r0.rgb,t2.a,t0,t1 // blend t0 with t1 using the alpha channel of t2
into:
mov r1,t1
lrp r0.rgb,t2.a,t0,r1 // blend t0 with t1 using the alpha channel of t2
(i think ps 1.1 doesn't support three t registers as source. ...again, i haven't tested this...)
|
|
|
Re: terrain multitexturing shader
[Re: Darkstorm]
#17312
12/04/03 21:29
12/04/03 21:29
|
Joined: Jun 2001
Posts: 385 Eastern Washington State
Zio
Senior Member
|
Senior Member
Joined: Jun 2001
Posts: 385
Eastern Washington State
|
I just tested it, and got it working perfectly after the following changes: A) Changed ps.1.3 to ps.1.1 B) Changed all "texSkin"'s to "entSkin"'s. C) Changed: lrp r0.rgb,t2.a,t0,t1 // blend t0 with t1 using the alpha channel of t2 into: mov r1,t1 lrp r0.rgb,t2.a,t0,r1 // blend t0 with t1 using the alpha channel of t2 D) Changed my terrains skills 41~44 to float(10) rather than just 10. heh, forgot that the first time >.< I must say, this shader is awesome! Makes terrain look MUCH nicer.
|
|
|
|