Hi all,
I'm porting across to Horde from a DirectX fixed function renderer where previously we've had access to ambient, diffuse, emissive and specular colour values on a per material (group) basis.
I'm looking to emulate these material settings in Horde by modifying model.shader and am wondering how I go about passing variables into that particular shader?
From the documentation it mentions:
Quote:
Horde3D materials are acting as the glue between a shader and the uniform data. The material resource references a shader for which it binds texture images. Furthermore, it enables to define arbitrarily named vector uniforms that can be used to exchange data between the application and the shader
...but I'm having a little trouble joining the dots.
Can anyone help me out with an example? Am I on the right track?