isidisi Posted July 12, 2010 Share Posted July 12, 2010 I have done a custom shader and it would be nice if I could set shader parameters in material files, and later obtain them from TMaterial object... Is there a way to do this? Thanks Quote Link to comment Share on other sites More sharing options...
Masterxilo Posted July 12, 2010 Share Posted July 12, 2010 No there's not, and such a feature has already been requested a long time ago http://forum.leadwerks.com/viewtopic.php?f=16&t=4858 So it's most likely not going to be implemented very soon. But you can of course parse the .mat file yourself a second time and set the shader uniforms with your own code. Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
isidisi Posted July 13, 2010 Author Share Posted July 13, 2010 No there's not, and such a feature has already been requested a long time ago http://forum.leadwerks.com/viewtopic.php?f=16&t=4858 So it's most likely not going to be implemented very soon. But you can of course parse the .mat file yourself a second time and set the shader uniforms with your own code. Ok I'll do this thanks a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.