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 / Multiple Images in sprite shader

Author
Message
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 1st Jul 2018 22:21
The idea is to use a shader to mix several images for a sprite. Is it possible to have multiple images for a sprite shader? I know you can use SetObjectImage() to set different textures for objects and quads but I'm not sure if there is a sprite equivalent or not.
Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 1st Jul 2018 22:31 Edited at: 1st Jul 2018 22:33
Yes its possible....... you use SetSpriteAdditionalImage()

You can then pass more than one image to the sprite shader easily. Its possible to do all sorts of cool effects
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 1st Jul 2018 22:39
Oh, don't know how I overlooked that one.. Thanks!

Login to post a reply

Server time is: 2024-11-23 18:14:35
Your offset time is: 2024-11-23 18:14:35