HW6 Lights and Shading/HW6 Lights and Shading/Camera.h
// Processes input received from any keyboard-like input system. Accepts input parameter in the form of camera defined ENUM (to abstract it from windowing systems)
Processes input received from any keyboard-like input system. Accepts input parameter in the form of camera defined ENUM (to abstract it from windowing systems)
Processes input received from any keyboard - like input system . Accepts input parameter in the form of camera defined ENUM ( to abstract it from windowing systems )
void processKeyboard(char direction, float deltaTime) {
		float velocity = MovementSpeed * deltaTime;
		if (direction == 'w')
			Position += Front * velocity;
		if (direction == 's')
			Position -= Front * velocity;
		if (direction == 'a')
			Position -= Right * velocity;
		if (direction == 'r')
			Position += Right * velocity;
	}
void processKeyboard ( char direction , float deltaTime ) { float velocity = MovementSpeed * deltaTime ; if ( direction == ' ' ) Position += Front * velocity ; if ( direction == ' ' ) Position -= Front * velocity ; if ( direction == ' ' ) Position -= Right * velocity ; if ( direction == ' ' ) Position += Right * velocity ; }
Processes input received from any keyboard-like input system.
Processes input received from any keyboard - like input system .