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 command request

Author
Message
wargasmic
18
Years of Service
User Offline
Joined: 15th Oct 2006
Location: UK
Posted: 15th Jul 2013 02:32
I don't know if this would be hard to implement, but something I find myself really needing is the ability to send arrays to shaders.

We have SetShaderConstantByName which is useful for most things, but the ability to send an array to the shader with it would be great.
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 15th Jul 2013 10:49
I fully agree to this, not sending arrays makes things like nultiple lights very tough to do
wargasmic
18
Years of Service
User Offline
Joined: 15th Oct 2006
Location: UK
Posted: 15th Jul 2013 21:45
Yeah, multiple lights would be so simple with the ability to send an array to the shader and would allow a single call instead of making a call for every single light.

Personally I need to create a distortable background that reacts to explosions, of which there could be any ammount so I need the ability to pass an array to the shader.

Is there any chance we could see this in 108, or are are we going to have to wait for the improved shader support in v2? Wouldn't it be quite a simple feature to add as we can already send multiple data types, just not arrays?
wargasmic
18
Years of Service
User Offline
Joined: 15th Oct 2006
Location: UK
Posted: 20th Jul 2013 02:29
Bump.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 23rd Jul 2013 17:34
I will take a new look at shaders in the 3D portion of AppGameKit v2. Setting array values was originally left out because tier 1 can't pass arrays as a parameter.

Login to post a reply

Server time is: 2024-11-24 18:59:16
Your offset time is: 2024-11-24 18:59:16