mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
add to render path automatically when going through a portal and fix images on tp path nodes
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/15 13:59:57 by TheRed #+# #+# */
|
||||
/* Updated: 2025/02/05 19:05:45 by ycontre ### ########.fr */
|
||||
/* Updated: 2025/02/17 22:47:47 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -27,6 +27,7 @@ struct GPUCamera
|
||||
};
|
||||
|
||||
class Scene;
|
||||
class Renderer;
|
||||
|
||||
class Camera
|
||||
{
|
||||
@ -36,14 +37,14 @@ class Camera
|
||||
~Camera(void);
|
||||
|
||||
|
||||
void update(Scene *scene, float deltaTime);
|
||||
void update(Scene *scene, float deltaTime, Renderer &renderer);
|
||||
void processMouse(float xoffset, float yoffset, bool constrainPitch);
|
||||
void processKeyboard(bool forward, bool backward, bool left, bool right, bool up, bool down);
|
||||
|
||||
void updateCameraVectors();
|
||||
void updateCameraDirections();
|
||||
|
||||
int portalTeleport(Scene *scene, float delta_time);
|
||||
int portalTeleport(Scene *scene, float delta_time, Renderer &renderer);
|
||||
|
||||
glm::vec3 getPosition();
|
||||
glm::vec2 getDirection();
|
||||
@ -89,4 +90,4 @@ class Camera
|
||||
int _bounce = 5;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/22 16:29:26 by tomoron #+# #+# */
|
||||
/* Updated: 2025/02/16 23:20:09 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/02/17 22:55:09 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -40,6 +40,7 @@ class Renderer
|
||||
Renderer(Scene *scene, Window *win, Arguments &args);
|
||||
|
||||
void update(std::vector<GLuint> &textures, ShaderProgram &denoisingProgram);
|
||||
void addTeleport(glm::vec3 from_pos, glm::vec2 from_dir, glm::vec3 to_pos, glm::vec2 to_dir);
|
||||
void renderImgui(void);
|
||||
|
||||
int rendering(void) const;
|
||||
@ -50,7 +51,7 @@ class Renderer
|
||||
|
||||
void showRenderInfo(int isImgui);
|
||||
std::string floatToTime(double timef);
|
||||
float calcTime(void);
|
||||
float calcTime(glm::vec3 pos);
|
||||
|
||||
void addPoint(float time);
|
||||
void imguiPathCreation(void);
|
||||
@ -98,6 +99,7 @@ class Renderer
|
||||
bool _ignoreUnavailableCodec;
|
||||
bool _tp;
|
||||
bool _autoTime;
|
||||
bool _autoTP;
|
||||
std::vector<const char *> _codecListStr;
|
||||
int _codecIndex;
|
||||
|
||||
|
Reference in New Issue
Block a user