Implement multiple radial distortion rendering

This commit is contained in:
2021-07-10 14:04:01 +02:00
parent 1c519259a1
commit c63b293ea5
8 changed files with 75 additions and 22 deletions
-3
View File
@@ -12,10 +12,7 @@ void main()
{
gl_Position = vec4(0,0,0,1);
vCen = (theMat * vec4(pos,0,1)).xy;
//vCen = (theMat * vec4(0,0,0,1)).xy;
vRad1 = (theMat * vec4(rad1,0,1)).xy;
//vRad1 = (theMat * vec4(0,200,0,1)).xy;
vRad2 = (theMat * vec4(rad2,0,1)).xy;
//vRad2 = (theMat * vec4(200,0,0,1)).xy;
vFactor = factor;
}