Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Using custom shaders with FPSC

Author
Message
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 8th May 2013 13:26
Hi!

I've been trying to use a custom shader on an entity. All I see is the unshaded entity.

To set up an entity using a shader like this, you need to apply texture stages. But how does FPSC handle this?

The custom shader I try to use is from dark shader. Do I need to modify the code somehow to make them work. I know little when it comes to shader programming, but I can see the code for the textures part looks different when I compare my code with bumpent.fx that is a stock shader.

Here is the code for the custom shader:



bumpent.fx:



Here is my custom fpe:


textures, shader, fpe file and dbo file are placed in the same folder within the fpsc/files directory

Thankful for help!

BEST!

www.memblockgames.com
RelMayer
18
Years of Service
User Offline
Joined: 14th Apr 2008
Location: France
Posted: 8th May 2013 13:45 Edited at: 8th May 2013 16:06
FPSC handles .FX shaders only, DBS don't work
Also, you should use a DDS texture instead a PNG ( not mandatory, but for organization purposes i would say ).


EDIT, I don't think this shader would ever work in FPSC, maybe i have wrong...

Excuse my grammar errors, I'm French.
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 8th May 2013 14:47
Hmmm,,,, ok. I find that a little strange because PPSC is written in dbpro,,,, but well! It doesn't matter. I'll try with an .fx file then!

btw,,, what's the big difference between .fx effect files and .dbs?

www.memblockgames.com

Login to post a reply

Server time is: 2026-07-03 13:53:11
Your offset time is: 2026-07-03 13:53:11