GLSL - Attributes in Irrlicht

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.
Post Reply
MirceaKitsune
Posts: 9
Joined: Thu Nov 08, 2012 10:49 pm

GLSL - Attributes in Irrlicht

Post by MirceaKitsune »

I'm not too good with shaders yet, but am a developer for an Irrlicht project (MineTest, C++). Another developer is working on adding better visual effects, but has hit an issue: He needs to use Attribute variables instead of Uniform ones. He looked for a way to do that in Irrlicht, but couldn't find anything in the Irrlicht docs.

How do you use Attributes for GLSL shaders, in Irrlicht 1.7 and / or 1.8?
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: GLSL - Attributes in Irrlicht

Post by hendu »

Not supported in those versions. You want the FVF branch for that.

Alternatively, see my instancing patch.
MirceaKitsune
Posts: 9
Joined: Thu Nov 08, 2012 10:49 pm

Re: GLSL - Attributes in Irrlicht

Post by MirceaKitsune »

I understand. A custom or patched version of Irrlicht isn't a possibility for the project, so sadly that wouldn't work. Any chance the branch might eventually become part of Irrlicht? If yes, is it known in which version and when that version will be released?
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: GLSL - Attributes in Irrlicht

Post by hendu »

It will be a part of 2.0 in a year or two, IIRC.
vivekSivamRP
Posts: 66
Joined: Sat Sep 29, 2012 11:58 am

Re: GLSL - Attributes in Irrlicht

Post by vivekSivamRP »

I do know whether it is possible in GLSL , but in GLSL ES 2.0 we are using our own attributes by modifying some line of codes in S3DVertex.h in irrlicht files.
Post Reply