Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-08-01 19:31:05 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-08-01 19:43:03 +0300
commit86270b60dbeab29b4dc7dd9b596bcf0d533639d0 (patch)
tree925fc9160014a5e8ed30b2d044cd51aefb41ce50 /intern/opensubdiv/opensubdiv_evaluator_capi.h
parent5b3b0ed54f20fedcd4d5324c17f3d5ea39f6274f (diff)
Subsurf: Evaluate all UV layers
Before that it was only first UV layer which was properly evaluated, the rest were ignored. Now all layers are being properly handled.
Diffstat (limited to 'intern/opensubdiv/opensubdiv_evaluator_capi.h')
-rw-r--r--intern/opensubdiv/opensubdiv_evaluator_capi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/opensubdiv/opensubdiv_evaluator_capi.h b/intern/opensubdiv/opensubdiv_evaluator_capi.h
index 07a55cfd349..eda5d614635 100644
--- a/intern/opensubdiv/opensubdiv_evaluator_capi.h
+++ b/intern/opensubdiv/opensubdiv_evaluator_capi.h
@@ -41,6 +41,7 @@ typedef struct OpenSubdiv_Evaluator {
// TODO(sergey): Find a better name for vertex here. It is not the vertex of
// geometry, but a vertex of UV map.
void (*setFaceVaryingData)(struct OpenSubdiv_Evaluator* evaluator,
+ const int face_varying_channel,
const float* face_varying_data,
const int start_vertex_index,
const int num_vertices);
@@ -70,6 +71,7 @@ typedef struct OpenSubdiv_Evaluator {
// TODO(sergey): Find a better name for vertex here. It is not the vertex of
// geometry, but a vertex of UV map.
void (*setFaceVaryingDataFromBuffer)(struct OpenSubdiv_Evaluator* evaluator,
+ const int face_varying_channel,
const void* buffer,
const int start_offset,
const int stride,
@@ -95,6 +97,7 @@ typedef struct OpenSubdiv_Evaluator {
// Evaluate face-varying data at a given bilinear coordinate of given
// ptex face.
void (*evaluateFaceVarying)(struct OpenSubdiv_Evaluator* evaluator,
+ const int face_varying_channel,
const int ptex_face_index,
float face_u, float face_v,
float face_varying[2]);