PDA

View Full Version : Time parameter for hlsl shaders?


harefort
12-08-2010, 11:30 AM
Hey guys!

I want to create a directX shader for 3dsmax that modifies vertices based on time - like a wave motion.
For this I need to pass the time to the shader as a constant.

I couldn't find any examples of how to pull this off in 3dsmax however.
Does anybody have experience with this?


Thanks!
-Sascha

harefort
12-08-2010, 11:33 AM
Actually it seem that the sliderTime can be accessed through this:
float Time : TIME ;

Can I also access realtime?
I feel like I'm overlooking something - is there a good documentation for HLSL in 3dsmax?

CGTalk Moderation
12-08-2010, 11:33 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.