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 (), 16,232 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
[Solved] Slicing Shader #155611
09/20/07 09:33
09/20/07 09:33
Joined: Jan 2007
Posts: 221
F
Fenriswolf Offline OP
Member
Fenriswolf  Offline OP
Member
F

Joined: Jan 2007
Posts: 221
Hello there,

I'm trying to clip a model along a plane.
If I'm not mistaken a user on these forums once achieved this in a portal shader or something like that.

In HLSL there is a function called clip, which seems to do exactly what i need. Unfortunately i am not very experienced in writing shaders.
Let's say i want to cut a model in half along a horizontal plane.
Can somebody please tell me, how to use this function to achieve this?

Thanks

Last edited by Fenriswolf; 09/20/07 12:57.
Re: Slicing Shader [Re: Fenriswolf] #155612
09/20/07 12:02
09/20/07 12:02
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Have a look at this thread

Re: Slicing Shader [Re: Slin] #155613
09/20/07 12:56
09/20/07 12:56
Joined: Jan 2007
Posts: 221
F
Fenriswolf Offline OP
Member
Fenriswolf  Offline OP
Member
F

Joined: Jan 2007
Posts: 221
Thank you very much, Slin!
By reading through the code of the demo i was able to get it working.


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