Add line shadow shader

This commit is contained in:
2021-06-26 22:20:41 +02:00
parent 726cd425f2
commit 06f22a3ea5
21 changed files with 128 additions and 74 deletions
+2 -5
View File
@@ -20,12 +20,9 @@ void main()
vec4 a1 = theMat * p1;
vec4 a2 = theMat * p2;
// if (0 > isLHS (a1.xy - a2.xy, a1.xy - "viewFromPoint")) {
vec4 p3 = vec4 (p1.xy,-0.5,1);
vec4 p4 = vec4 (p2.xy,-0.5,1);
vec4 p3 = vec4 (p1.xy,150,1);
vec4 p4 = vec4 (p2.xy,150,1);
vec4 a3 = theMat * p3;
vec4 a4 = theMat * p4;