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 Studio Chat / Feature Request: Shadow Alpha to Object Alpha

Author
Message
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 27th Jul 2019 20:30
Is it possible for shadows to get lighter if an object alpha is set with SetObjectColorAlpha? So for example if an object is set to fade out to nothing using an alpha tween, could the shadow also gradually fade to nothing based on the objects alpha setting? Thanks.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 28th Jul 2019 01:40
That sounds like it would need a shader, and prob a little to complex for the standard shader used
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 28th Jul 2019 21:18
Normally you just have the distance of the occluder in you shadow map. But you could also render the distance and alpha value or maybe also the color of the ...lets say stained glass(somehow decoded into the four color channels). Take my shadow shader and change it like you want.

Login to post a reply

Server time is: 2024-04-12 22:02:07
Your offset time is: 2024-04-12 22:02:07