String evaluation in shaders

   1155   0   0
User Avatar
Member
155 posts
Joined: 9月 2015
Offline
Is string processing in PBR shaders inefficient? I was told this kills arnold Arnold, but I wasn't sure about Mantra. For example, would it be bad to get my diffuse color map from a snippet:

texture_path = s@mtl_dir + “/” + s@asset_name“ + ”.rat";

Where both mtl_dir and asset_name are primitive/detail attributes?

  • Quick Links