KiLa Posted March 31, 2019 Share Posted March 31, 2019 Is there a way to define the ‘width’ attribute, that Mantre uses when rendering lines, inside shader/material? I tried to export one from shader but Mantra doesn't seem to use it. Only way (so far) that does seem to work is to define it outside shader. Cheers -k Quote Link to comment Share on other sites More sharing options...
davpe Posted March 31, 2019 Share Posted March 31, 2019 as far as i know it has to be a point attribute. shader is not related to this. Quote Link to comment Share on other sites More sharing options...
anim Posted March 31, 2019 Share Posted March 31, 2019 you can't define it in the surface shader as at that point it's already too late (surface shader is executed upon ray intersection with the curve, and in order to get that intersection width had to be already known) what you can do however is one of the following: - create width attribute wide enough to cover all your needs and then in surface shader use parametric s coordinate to control the opacity of the shader, therefore you can make the curve appear thinner than it is so essentially give you ontrol to define any thickness lower than the initial width - create hengine curve procedural that will set the width attribute on the geometry at rendertime Quote Link to comment Share on other sites More sharing options...
KiLa Posted March 31, 2019 Author Share Posted March 31, 2019 @anim: You're genius! 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.