google-code-export / monoxna

Automatically exported from code.google.com/p/monoxna
Other
1 stars 1 forks source link

Viewport Project method error #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Original : 
Vector4 result = Vector4.Transform(source, world);
            result = Vector4.Transform(source, view);
            result = Vector4.Transform(source, projection);
            result.Z = result.Z * (this.maxDepth - this.minDepth);
            result = Vector4.Divide(result, result.W);

Fixed:
Vector4 result = Vector4.Transform(source, world);
            result = Vector4.Transform(result, view);
            result = Vector4.Transform(result, projection);
            result.Z = result.Z * (this.maxDepth - this.minDepth);
            result = Vector4.Divide(result, result.W);

Original issue reported on code.google.com by mano...@seznam.cz on 15 Aug 2008 at 7:54

GoogleCodeExporter commented 9 years ago
made changes

thanks 

Original comment by lav...@gmail.com on 29 Dec 2009 at 2:12