Tuesday, September 20, 2022
HomeGame DevelopmentIs their any approach so as to add shadow and description to...

Is their any approach so as to add shadow and description to sprites? – Cocos Creator


is their any approach so as to add shadow and description to sprites? like label has these parts so as to add.
@zzf520 @slackmoehrle


@RAAng @huynhthuan @linrm
is their any approach so as to add shadow and description to sprites? like label has these parts so as to add.

Sure there’s
You possibly can create the identical sprite with the shadow on it and for instance when the participant presses on the sprite / button it modifications it’s present sprite to the sprite with the shadow,
and when reclicking on it modifications to it’s regular sprite

cocos creator doesn’t present parts to attain this impact, you possibly can attempt to add your individual.

In case you completely need to do it dynamically with a shader, it is best to look into signed distance fields.
Right here is an efficient tutorial sequence about them, not in cocos, however because it’s solely shaders, it may be made in cocos too :

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments