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 / Shader with Multi-Texture/Image Masking... issue...

Author
Message
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 13th Sep 2015 02:21
I am not sure if this is a bug...
I have search for this on google and nothing seems out of place.

The problem is, when assigning multiple image into shader, the second image is the same as the first, despite using "SetSpriteAdditionalImage()".

main.agc:


sprite.ps:


Thank you for taking a look at this post!
lilpissywilly
AGK Developer
14
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 14th Sep 2015 16:26
What about if you use:

uniform sampler2D texture0;
uniform sampler2D texture1;

My hovercraft is full of eels
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 14th Sep 2015 17:01 Edited at: 14th Sep 2015 17:10
That Works?!
Seriously, there should be a guide for this in the document, haha!

Thank you!

But it is weird that AppGameKit pass the variable this way?
Because in "Unity" and others engine, this was not an issue?
lilpissywilly
AGK Developer
14
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 14th Sep 2015 17:06 Edited at: 14th Sep 2015 17:08
There should yes, I've included a file with keywords for shaders in AGK. It's from AppGameKit 1 and pretty old but seems to still be what's in use

My hovercraft is full of eels

Attachments

Login to view attachments
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 14th Sep 2015 17:12 Edited at: 14th Sep 2015 17:12
I found it in AGK2 folder...
Not sure if anyone would actually search in their OS folder... first...

Login to post a reply

Server time is: 2024-09-29 05:20:55
Your offset time is: 2024-09-29 05:20:55