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 / SetShaderConstantByName and arrays

Author
Message
wargasmic
18
Years of Service
User Offline
Joined: 15th Oct 2006
Location: UK
Posted: 14th Jun 2013 18:44
Is it possible to pass an array with SetShaderConstantByName?

Say my shader has an array of vec4's for explosion locations and strengths, can I populate this array? Would I just construct an array in my program and pass this array with SetShaderConstantByName?
wargasmic
18
Years of Service
User Offline
Joined: 15th Oct 2006
Location: UK
Posted: 14th Jun 2013 19:38
Nope, only floats:S

Login to post a reply

Server time is: 2024-11-24 16:08:54
Your offset time is: 2024-11-24 16:08:54