增加矩阵变换注释
This commit is contained in:
parent
c4c63a7add
commit
be338ecf2e
@ -34,6 +34,9 @@ namespace hgl
|
|||||||
|
|
||||||
matrix.mvp=matrix.projection*matrix.modelview;
|
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);
|
matrix.two_dim=ortho(width,height,znear,zfar);
|
||||||
|
|
||||||
frustum.SetVerticalFovAndAspectRatio(DegToRad(fov),width/height);
|
frustum.SetVerticalFovAndAspectRatio(DegToRad(fov),width/height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user