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 / Using multiple shaders on one 3D object?

Author
Message
Tobias_Ripper
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: REPCONN inc.
Posted: 22nd Nov 2017 04:10
Googling and Thread search didn't seem to come up with anything so here goes.

Is using multiple shaders (Like the Fog and Ambient Occlusion shader) on one object is as tormenting and convoluted as I think it is? With what little shader work I've done in Game Maker Studio, combining shader code can't be any prettier in AppGameKit can it? I don't suppose you can apply one shader and then another, stacking them on top of each other?
Eisenstadt Studio: Eisenstadtstudio.com
Composers Page: Milesthatch.net
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 22nd Nov 2017 08:45 Edited at: 22nd Nov 2017 08:50
I think you need to combine them into a single shader, as applying a second shader will overwrite the first..
Click here for VR Legend of Zelda stuff
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 22nd Nov 2017 14:20 Edited at: 22nd Nov 2017 14:37
Are you talking about AmbientOcclusion from the ShaderPack ?
The ScreenSpaceAmbientOcclusion effect from my pack is a fullscreen shader and fullscreen shaders are the only shaders that can be stacked.
Anyhow the SSAO shader should not interfere with fog from AGK.
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 22nd Nov 2017 21:06
You can shade meshes independently with SetObjectMeshShader (or something)
I've done things like that for vehicle windscreens for instance.

Login to post a reply

Server time is: 2024-03-28 21:01:31
Your offset time is: 2024-03-28 21:01:31