Cycles OSL: refactoring and fixes
* Moved kernel/osl/nodes to kernel/shaders * Renamed standard attributes to use geom:, particle:, object: prefixes * Update stdosl.h to properly reflect the closures we support * Fix the wrong stdosl.h being used for building shaders * Add geom:numpolyvertices, geom:trianglevertices, geom:polyvertices attributes
This commit is contained in:
@@ -366,8 +366,8 @@ void MeshManager::update_osl_attributes(Device *device, Scene *scene, vector<Att
|
||||
osl_attr.type = TypeDesc::TypeColor;
|
||||
|
||||
if(req.std != ATTR_STD_NONE) {
|
||||
/* if standard attribute, add lookup by std:: name convention */
|
||||
ustring stdname(std::string("std::") + std::string(attribute_standard_name(req.std)));
|
||||
/* if standard attribute, add lookup by geom: name convention */
|
||||
ustring stdname(string("geom:") + string(attribute_standard_name(req.std)));
|
||||
og->attribute_map[i][stdname] = osl_attr;
|
||||
}
|
||||
else if(req.name != ustring()) {
|
||||
|
Reference in New Issue
Block a user