mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-06 02:09:55 +03:00
common: Add a vector arithmetic helper classes
Change-Id: I2f96baedf10d346eaa150bab04f8f6ca3ba573b9 Reviewed-on: https://chromium-review.googlesource.com/414272 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#include "shader_utils.h"
|
||||
#include "texture_utils.h"
|
||||
#include "geometry_utils.h"
|
||||
#include "Vector.h"
|
||||
#include "Matrix.h"
|
||||
|
||||
#include <cmath>
|
||||
@@ -106,8 +105,8 @@ class PostSubBufferSample : public SampleApplication
|
||||
Matrix4 perspectiveMatrix = Matrix4::perspective(60.0f, float(getWindow()->getWidth()) / getWindow()->getHeight(),
|
||||
1.0f, 20.0f);
|
||||
|
||||
Matrix4 modelMatrix = Matrix4::translate(Vector3(0.0f, 0.0f, -2.0f)) *
|
||||
Matrix4::rotate(mRotation, Vector3(1.0f, 0.0f, 1.0f));
|
||||
Matrix4 modelMatrix = Matrix4::translate(angle::Vector3(0.0f, 0.0f, -2.0f)) *
|
||||
Matrix4::rotate(mRotation, angle::Vector3(1.0f, 0.0f, 1.0f));
|
||||
|
||||
Matrix4 viewMatrix = Matrix4::identity();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user