Hello, I'm quite new to Horde3D but I have noticed, that you are not able to define custom attribute variables in the vertex shaders (or at least Horde cannot feed them to you) and I think this is a feature that is definitely missing, despite Horde's high flexibility.
I don't have too much understanding of Horde's internals, but I think it could be introduced quite easiely. The user could just define a number of optional custom attributes in the .geo file together with their number of components and type (or always float). Then in the material you establish a mapping from a shader's named vertex attribute to the corresponding geo-attribute (which could also be named or just indexed). If a shader or context does not use additional attributes of a mesh, they are just ignored (attrib array disabled).
Just an idea.
|