Fixed varying interp for gregory triangle patches

The point indices used to interpolate varying data should
be the points at the outer corners of the patch.
This commit is contained in:
David G Yu 2019-01-25 19:15:45 -08:00
parent 9487545ccd
commit 0545056271

View File

@ -178,7 +178,7 @@ void main()
outpt.v.tessCoord = UV;
outpt.v.patchCoord = OsdInterpolatePatchCoordTriangle(UV, patchParam);
OSD_USER_VARYING_PER_EVAL_POINT_TRIANGLE(UV, 6, 7, 10);
OSD_USER_VARYING_PER_EVAL_POINT_TRIANGLE(UV, 0, 5, 10);
OSD_DISPLACEMENT_CALLBACK;