Page MenuHome

Support Vertex Colro in GLSL viewport for Cycles
ClosedPublic

Authored by Sergey Sharybin (sergey) on May 22 2016, 6:28 PM.

Details

Summary

The title says it all actually.

Added special custom data type, because we don't know in advance
whether we're referencing UV or Color layer. Also made it so vertex
attributes are normalized.

Diff Detail

Repository
rB Blender

Event Timeline

Sergey Sharybin (sergey) retitled this revision from to Support Vertex Colro in GLSL viewport for Cycles.
Sergey Sharybin (sergey) updated this object.
source/blender/makesdna/DNA_customdata_types.h
82

Perhaps better to call CD_SPECIAL_AUTO or so.

The approach seems fine to me.

source/blender/blenkernel/intern/DerivedMesh.c
3683

Intended to be -1?

source/blender/makesdna/DNA_customdata_types.h
82

Maybe CD_AUTO_FROM_NAME or CD_AUTO_ATTRIBUTE.

Sergey Sharybin (sergey) edited edge metadata.

Address issues reported by Brecht

This revision is now accepted and ready to land.May 22 2016, 7:45 PM
This revision was automatically updated to reflect the committed changes.