增加矩阵变换注释

This commit is contained in:
hyzboy 2019-05-29 21:56:53 +08:00
parent c4c63a7add
commit be338ecf2e

View File

@ -34,6 +34,9 @@ namespace hgl
matrix.mvp=matrix.projection*matrix.modelview;
//注意: C++中要 projection * model_view * local_to_world * position
//而GLSL中要 position * local_to_world * model_view * projection
matrix.two_dim=ortho(width,height,znear,zfar);
frustum.SetVerticalFovAndAspectRatio(DegToRad(fov),width/height);