Fix GPU linking Error.

"The geometry shader uses varying _I;gl_PerVertex;gl_ClipDistance, but previous shader does not write to it."
This commit is contained in:
Germano Cavalcante 2019-01-24 12:41:07 -02:00
parent 35f0a59df6
commit 95db2e8749
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ void main()
gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
facing_g = normalize(NormalMatrix * nor).z;
#ifdef USE_WORLD_CLIP_PLANES
world_clip_planes_calc_clip_distance((ModelMatrix * vec4(pos, 1.0)).xyz);
#endif
}
#else /* SELECT_EDGES */