Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 00:25

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 14.04.2014, 16:21 
Offline

Joined: 08.04.2014, 18:23
Posts: 9
The topic is question. How can i apply shader to mesh? How can i load shader and initialize all uniforms?


Top
 Profile  
Reply with quote  
PostPosted: 14.04.2014, 19:40 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
You don't apply a shader directly. Instead you have to apply a material und reference the shader in it.


Top
 Profile  
Reply with quote  
PostPosted: 14.04.2014, 20:24 
Offline

Joined: 08.04.2014, 18:23
Posts: 9
I have to create a material, to refer shader in it and to apply material on my mesh? Richtig? :D


Top
 Profile  
Reply with quote  
PostPosted: 14.04.2014, 21:32 
Offline

Joined: 17.11.2009, 17:00
Posts: 205
Location: Russia, Moscow
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.


Top
 Profile  
Reply with quote  
PostPosted: 16.04.2014, 16:30 
Offline

Joined: 08.04.2014, 18:23
Posts: 9
Thanks for help.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group