~ | Small modif

This commit is contained in:
RedShip
2025-01-15 19:53:00 +01:00
parent 7d81da012e
commit a892d5e7e6
9 changed files with 25390 additions and 25 deletions

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/15 14:00:38 by TheRed #+# #+# */
/* Updated: 2024/12/23 17:42:20 by ycontre ### ########.fr */
/* Updated: 2025/01/15 19:32:41 by ycontre ### ########.fr */
/* */
/* ************************************************************************** */
@ -38,7 +38,7 @@ void Camera::updateCameraVectors()
void Camera::update(float delta_time)
{
delta_time = std::min(delta_time, 0.01f);
// delta_time = std::min(delta_time, 0.01f);
_velocity += _acceleration * delta_time;

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/23 18:29:41 by ycontre #+# #+# */
/* Updated: 2025/01/15 18:58:34 by ycontre ### ########.fr */
/* Updated: 2025/01/15 19:34:49 by ycontre ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,7 +17,7 @@ Scene::Scene()
_camera = new Camera(glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 1.0f, 0.0f), -90.0f, 0.0f);
_gpu_volume.enabled = 0;
_gpu_volume.sigma_a = glm::vec3(0.0001f);
_gpu_volume.sigma_a = glm::vec3(0.0f);
_gpu_volume.sigma_s = glm::vec3(0.0800f);
_gpu_volume.sigma_t = _gpu_volume.sigma_a + _gpu_volume.sigma_s;
_gpu_volume.g = 0.9f;

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/26 21:43:51 by TheRed #+# #+# */
/* Updated: 2025/01/15 19:08:42 by tomoron ### ########.fr */
/* Updated: 2025/01/15 19:52:51 by ycontre ### ########.fr */
/* */
/* ************************************************************************** */
@ -141,7 +141,7 @@ void SceneParser::parseMtl(std::stringstream &input_line, std::map<std::string,
throw std::runtime_error("OBJ : could not open material file");
while(getline(file, line))
{
if(line[0] == '#' || !line[0])
if (line.empty() || line[0] == '#')
continue;
std::stringstream lineStream(line);
lineStream >> identifier;

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/13 16:16:24 by TheRed #+# #+# */
/* Updated: 2025/01/15 18:58:49 by ycontre ### ########.fr */
/* Updated: 2025/01/15 19:34:25 by ycontre ### ########.fr */
/* */
/* ************************************************************************** */
@ -242,7 +242,7 @@ void Window::imGuiRender()
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
if (has_changed)
_frameCount = (accumulate == 0) + 1;
_frameCount = (accumulate == 0) - 1;
}
GLFWwindow *Window::getWindow(void) const