Source

gltut / Documents / Basics / GenNormDeviceCoord.lua

Diff from to

File Documents/Basics/GenNormDeviceCoord.lua

 	return ret;
 end
 
---Negate the Z to get into a left-handed system.
 local viewportMatrix = vmath.mat4(
 	vmath.vec4(imageWidth / 2, 0, 0, imageWidth / 2),
 	vmath.vec4(0, imageHeight / 2, 0, imageHeight / 2),