aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-01-25 13:39:23 +0100
committerraysan5 <raysan5@gmail.com>2016-01-25 13:39:23 +0100
commitd0ff78e7f41be9884e786026ddd22ed53fc0943f (patch)
tree9ff12dc5f0a7b28dcaca0e6072bb5012f32278e3 /src
parent3113a20390a1e4d81e9f832e7aa1d022afdb56d1 (diff)
downloadraylib-d0ff78e7f41be9884e786026ddd22ed53fc0943f.tar.gz
raylib-d0ff78e7f41be9884e786026ddd22ed53fc0943f.zip
Move Light struct to example
Diffstat (limited to 'src')
-rw-r--r--src/core.c6
-rw-r--r--src/rlgl.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 811f082a..df380552 100644
--- a/src/core.c
+++ b/src/core.c
@@ -938,6 +938,12 @@ Vector2 WorldToScreen(Vector3 position, Camera camera)
return screenPosition;
}
+// Get transform matrix for camera
+Matrix GetCameraMatrix(Camera camera)
+{
+ return MatrixLookAt(camera.position, camera.target, camera.up);
+}
+
//----------------------------------------------------------------------------------
// Module Functions Definition - Input (Keyboard, Mouse, Gamepad) Functions
//----------------------------------------------------------------------------------
diff --git a/src/rlgl.h b/src/rlgl.h
index 76cae987..64581db8 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -167,9 +167,6 @@ typedef enum { OPENGL_11 = 1, OPENGL_33, OPENGL_ES_20 } GlVersion;
// Uniforms
int mvpLoc; // ModelView-Projection matrix uniform location point (vertex shader)
-
- int modelLoc; // Model transformation matrix uniform location point (vertex shader)
- int viewLoc; // View transformation matrix uniform location point (vertex shader)
int tintColorLoc; // Color uniform location point (fragment shader)
int mapDiffuseLoc; // Diffuse map texture uniform location point (fragment shader)