Click-to-camera!

This commit is contained in:
2014-03-11 16:11:12 +01:00
parent f027773af8
commit 43ab2473ec
3 changed files with 52 additions and 36 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ void main()
{
gl_Position = MVP * vec4(Input[i].Position, 1.0);
EmitVertex();
gl_Position = MVP * vec4(Input[i].Position, 1.0) + MVP * vec4(Input[i].Normal, 0.0);
gl_Position = MVP * vec4(Input[i].Position + Input[i].Normal, 1.0);
EmitVertex();
EndPrimitive();