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.

AppGameKit Classic Chat / Shader 3D : fallof

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 24th Nov 2015 11:55 Edited at: 24th Nov 2015 13:11
Hi does someone know how to do a fall-of (or rim-lighting) shader in AppGameKit ?

Like this :
https://www.youtube.com/watch?v=R9M3OMYemCA

Thank you.

EDIT
I have found a shader, now I have to convert it for AppGameKit ^^

Here is the vertex :


Fragment :


Another one, but I don't understand this shader ^^ :
http://www.roxlu.com/2014/037/opengl-rim-shader

http://www.dracaena-studio.com
Zwarteziel
13
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 24th Nov 2015 14:20
Hi Blendman,

I have a falloff-shader that I use in my project. I'll post it this evening, if I can find the time. To 'manage expectations' beforehand: It works perfectly on AGK2v2.0.14b, but not with AGK2 v2.0.15d. I'm still trying to find out which variable-names have changed to get it working again.
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 24th Nov 2015 14:30
Hi Zerotown.

I think agk_ObjColor (or somethings else) is now : agk_MeshDiffuse

I'm waiting to see your shader , thanks .
http://www.dracaena-studio.com
Zwarteziel
13
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 24th Nov 2015 20:04
Hi Blendman,

I'm unable to get to my desktop this evening, so I'll have to postpone posting the shader until tomorrow. My apologies!
Zwarteziel
13
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 25th Nov 2015 16:54 Edited at: 25th Nov 2015 18:50
Okay, so here is the vertex shader:


And the pixel shader:



And the way I call it, at the start of the program:



I've already changed agk_ObjColor to agk_MeshDiffuse, but alas... no dice as yet.

Login to post a reply

Server time is: 2024-04-26 15:30:01
Your offset time is: 2024-04-26 15:30:01