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.

DarkBASIC Professional Discussion / Shader - replace color with texture?

Author
Message
Hayer
20
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 4th Apr 2011 20:22
Hi

Im pretty new to shaders, so.. The only thing I got so far is:


( Removed some of the code when c&p, it so simple people will laugh at me )..

Soo can anyone give me a hint on how to replace the color (255,0,0) Red with texture1 which I set in my application?

Keep it simple.
Questions? Mail me
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 4th Apr 2011 22:30
That's not much of a shader. I think we need more code to go on.
Hayer
20
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 5th Apr 2011 03:36
Well, Im limited to only using a fragment shader. Still any hope?

Keep it simple.
Questions? Mail me
Math89
22
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 8th Apr 2011 10:42
This looks more like an OpenGL shader to me, if you want to use it in dbpro, I think you should take a look at the hlsl shaders.

Login to post a reply

Server time is: 2026-07-17 14:00:12
Your offset time is: 2026-07-17 14:00:12