Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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