Skip to content

Commit 0d2b295

Browse files
Remove old workaround for vertex color attribute
1 parent 9911b94 commit 0d2b295

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

UnityProject/Assets/UseRenderingPlugin.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ private void SendMeshBuffersToPlugin ()
9999
// by default they are immutable and only GPU-readable).
100100
mesh.MarkDynamic ();
101101

102-
// Make sure to have vertex colors so that the plugin can rely on a known
103-
// vertex layout (position+normal+color+UV). Since Unity 2019.3 it's easier
104-
// since there are APIs to query all that info.
105-
var colors = mesh.colors;
106-
mesh.colors = colors;
107-
108102
// However, mesh being dynamic also means that the CPU on most platforms can not
109103
// read from the vertex buffer. Our plugin also wants original mesh data,
110104
// so let's pass it as pointers to regular C# arrays.

0 commit comments

Comments
 (0)