Horde3D

Next-Generation Graphics Engine
It is currently 25.11.2024, 18:21

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 15.07.2008, 22:24 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
Is it possible to set shader uniform parameters right before each node is rendered?
Or does the engine need a OnPreRender callback for that?


Top
 Profile  
Reply with quote  
PostPosted: 15.07.2008, 22:51 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
jimbo wrote:
Is it possible to set shader uniform parameters right before each node is rendered?
Or does the engine need a OnPreRender callback for that?
So you need to recalculate the value of the uniform for each node, each frame?

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
PostPosted: 16.07.2008, 07:34 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
Well, for some nodes yes.


Top
 Profile  
Reply with quote  
PostPosted: 16.07.2008, 07:40 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
If I understand you correctly, currently it's not possible. You can just change the material uniforms before you call the render method. But while it's rendering the complete scenegraph, you can't change them. If you just wanted to change the material uniforms, you can use the setMaterialUniform function.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Majestic-12 [Bot] and 13 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