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/internal/opensubdiv_evaluator_internal.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/internal/opensubdiv_evaluator_internal.h')
-rw-r--r--intern/opensubdiv/internal/opensubdiv_evaluator_internal.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.h b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.h
index cc69db6abc6..7d9178f38dc 100644
--- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.h
+++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.h
@@ -57,7 +57,8 @@ class CpuEvalOutputAPI {
//
// TODO(sergey): Find a better name for vertex here. It is not the vertex of
// geometry, but a vertex of UV map.
- void setFaceVaryingData(const float* varying_data,
+ void setFaceVaryingData(const int face_varying_channel,
+ const float* varying_data,
const int start_vertex_index, const int num_vertices);
// Set coarse vertex position from a continuous memory buffer where
@@ -82,7 +83,8 @@ class CpuEvalOutputAPI {
//
// TODO(sergey): Find a better name for vertex here. It is not the vertex of
// geometry, but a vertex of UV map.
- void setFaceVaryingDataFromBuffer(const void* buffer,
+ void setFaceVaryingDataFromBuffer(const int face_varying_channel,
+ const void* buffer,
const int start_offset,
const int stride,
const int start_vertex_index,
@@ -104,7 +106,8 @@ class CpuEvalOutputAPI {
// Evaluate facee-varying data at a given bilinear coordinate of given
// ptex face.
- void evaluateFaceVarying(const int ptes_face_index,
+ void evaluateFaceVarying(const int face_varying_channel,
+ const int ptes_face_index,
float face_u, float face_v,
float face_varying[2]);