[Bf-cycles] Set custom normals in a mesh

Mohamed Sakr 3dsakr at gmail.com
Tue Feb 6 10:54:55 CET 2018


just use an attribute.
Attribute *attr = attributes.add(ustring(name), TypeDesc::TypeNormal,
ATTR_ELEMENT_CORNER);
float3 *attr_data = attr->data_float3();

On Tue, Feb 6, 2018 at 9:01 AM, F Escobar <materialesescobar at hotmail.es>
wrote:

> Besides that trusting in cycles to re-create the smooth normals in the
> meshes seems to be ok, I was wondering if there is anyway to write custom
> normals, modify them and so.
>
>
> Regards, F.
>
>
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> https://lists.blender.org/mailman/listinfo/bf-cycles
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-cycles/attachments/20180206/73bf39fd/attachment.html>


More information about the Bf-cycles mailing list