Horde3D
http://horde3d.org/forums/

Apply shader to the mesh.
http://horde3d.org/forums/viewtopic.php?f=2&t=2258
Page 1 of 1

Author:  dPGames [ 14.04.2014, 16:21 ]
Post subject:  Apply shader to the mesh.

The topic is question. How can i apply shader to mesh? How can i load shader and initialize all uniforms?

Author:  Volker [ 14.04.2014, 19:40 ]
Post subject:  Re: Apply shader to the mesh.

You don't apply a shader directly. Instead you have to apply a material und reference the shader in it.

Author:  dPGames [ 14.04.2014, 20:24 ]
Post subject:  Re: Apply shader to the mesh.

I have to create a material, to refer shader in it and to apply material on my mesh? Richtig? :D

Author:  Irdis [ 14.04.2014, 21:32 ]
Post subject:  Re: Apply shader to the mesh.

Check the materials in the Binary folder. Almost all of them link to the model.shader that should be right for most of your needs. You'll see how to specify the shader and shader uniforms.
Mesh materials, shaders and uniforms can easily be modified in the Horde editor.

Author:  dPGames [ 16.04.2014, 16:30 ]
Post subject:  Re: Apply shader to the mesh.

Thanks for help.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/