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?
GLSL - Attributes in Irrlicht
Re: GLSL - Attributes in Irrlicht
Not supported in those versions. You want the FVF branch for that.
Alternatively, see my instancing patch.
Alternatively, see my instancing patch.
-
- Posts: 9
- Joined: Thu Nov 08, 2012 10:49 pm
Re: GLSL - Attributes in Irrlicht
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?
Re: GLSL - Attributes in Irrlicht
It will be a part of 2.0 in a year or two, IIRC.
-
- Posts: 66
- Joined: Sat Sep 29, 2012 11:58 am
Re: GLSL - Attributes in Irrlicht
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.