If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
-
wing64
- Competition winner
- Posts: 242
- Joined: Wed Jul 23, 2008 2:35 am
- Location: Thailand
-
Contact:
Post
by wing64 »
Hi
I confuse when send array data to shader program e.g.
Cpu pass ->
Code: Select all
float mBloomTexWeights[15][4];
services->setPixelShaderConstant("sampleWeights", mBloomTexWeights[0], 60);
Shader pass i used ->
That's correct or not
Best regards,
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
-
Contact:
Post
by hybrid »
Hmm, should work. Not sure, if it's safe, though. Maybe BlindSide or Nadro can give a hint.
-
BlindSide
- Admin
- Posts: 2821
- Joined: Thu Dec 08, 2005 9:09 am
- Location: NZ!
Post
by BlindSide »
Are you using an AMD video card? I found some can't receive arrays in GLSL properly, not sure if that was fixed or not.
ShadowMapping for Irrlicht!:
Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
-
wing64
- Competition winner
- Posts: 242
- Joined: Wed Jul 23, 2008 2:35 am
- Location: Thailand
-
Contact:
Post
by wing64 »
Thanks for reply both hybrid & BlindSide.
@BlindSide:
Yes i used AMD video card.