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 / Sprite Shader with SetSpriteScissors?

Author
Message
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 14th Jan 2017 09:21
I have the following sprite shader which uses a second image to use as a mask, for rounding Facebook profile pics etc.



The issue is it no longer works with SetSpriteScissors, and I need this as it scrolling within a UI box. Does anyone know how to add the scissor functionality into the sprite shader?

Thanks.
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 16th Jan 2017 07:10
I guess I need the the default sprite shader code so I can modify it. Does it exist anywhere already? Forum search isn't showing anything.
MikeHart
AGK Bronze Backer
21
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 16th Jan 2017 09:38 Edited at: 16th Jan 2017 09:38
Did you had a look at the shader guide?

http://appgamekit.com/documentation/guides/13_shaders.htm

It shows some default shaders there.
Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200. Using AGK2 Tier 1.
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 16th Jan 2017 11:23
Thanks, that's exactly what I needed.

Looking at the default shader I can't see why my code wouldn't work, maybe the scissors function gets reset after setting a shader or something. I'll have to investigate it more.

Login to post a reply

Server time is: 2024-11-24 20:29:38
Your offset time is: 2024-11-24 20:29:38