You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
364 B
11 lines
364 B
#pragma once
|
|
#include"Vector3.h"
|
|
class Ray;
|
|
class Camera {
|
|
public:
|
|
Vector3 mPosition, mCenter, mUp, mUVector, mVVector, mUSpanVector, mVSpanVector;
|
|
float mFOV, mAspect, mNearPlaneWidth, mNearPlaneHeight;
|
|
Camera(float fov, float aspect);
|
|
void LookAt(const Vector3& position, const Vector3& center, const Vector3& up);
|
|
Ray GetRay(float u, float v);
|
|
};
|