GPU_codegen: Add support for passing attributes through the geometry stage.

Should fix some issues with missing attributes in Eevee.
This commit is contained in:
2017-06-28 21:05:43 +02:00
parent 26b699a105
commit ada6e720f9
2 changed files with 66 additions and 16 deletions

View File

@@ -23,6 +23,9 @@ void main() {
for (int v = 0; v < 3; ++v) {
gl_Position = vPos[v];
worldPosition = x_axis[f] * vPos[v].x + y_axis[f] * vPos[v].y + maj_axes[f];
#ifdef ATTRIB
pass_attrib(v);
#endif
EmitVertex();
}