Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 984 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Transforming single-pass into multi-pass shader #61509
01/02/06 15:17
01/02/06 15:17
Joined: Aug 2003
Posts: 183
BionicHero Offline OP
Member
BionicHero  Offline OP
Member

Joined: Aug 2003
Posts: 183
Hi!
I took the HLSL shader for terrain multitexturing and added some extra textures for which I had to go up from PS1.1 to PS1.4.
However I want this to be also PS1.1-compatible so I wanted to transform the 1.4-single-pass shader into a 1.1-multi-pass shader. My problem is: How to do it? Do you have to render the first pass into memory and then sample that into the second pass? If yes, how do I have to code that? If not, how does it work instead?
Any directions would be great! I went over Google for over an hour and I found not a single multi-pass shader in HLSL...

Re: Transforming single-pass into multi-pass shade [Re: BionicHero] #61510
01/02/06 15:22
01/02/06 15:22
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
you need to use the blend states: srcBlend and destBlend. for the second and following passes you need to set EnableAlphaBlend = 1; and BlendOp = 1;

check the dx sdk documentation for those src and destBlend states


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1