I'm trying to get the UV coordinates of from UVMap using getattribute()
as follows :
#include "stdosl.h"
shader node_uv_map(
string name = "",
output point UV = point(0.0, 0.0, 0.0),
)
{
if (name == "")
getattribute("geom:uv", UV);
else
getattribute(name, UV);
}
with the name
empty or containing the UVmap name there is no output
- how to perform that correctly
- is there another way to get the uvmap coordinates in osl
- what are othor attribute that can be retrieved using
getattribute
beside these
Blender 2.7b