Skip to content

Rendering Improvements#7

Open
syborg64 wants to merge 35 commits intodevfrom
feat/deferred_rendering
Open

Rendering Improvements#7
syborg64 wants to merge 35 commits intodevfrom
feat/deferred_rendering

Conversation

@syborg64
Copy link
Copy Markdown
Contributor

@syborg64 syborg64 commented Mar 6, 2025

  • support normal-tangeant mapping

  • support obj pbr material loading

  • support user-defined materials and shaders

  • support multiple light types

  • support shadows for directional lights

  • restore functionality of Forward Renderer

@syborg64 syborg64 linked an issue Mar 6, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@Arthur-Aillet Arthur-Aillet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@syborg64 I have to trust you on this one, I read everything and didn't find a problem but don't count on me too much regarding rendering

@syborg64
Copy link
Copy Markdown
Contributor Author

syborg64 commented Mar 8, 2025

given the significant changes in PRs that will be merged before this one, I expect that I'll have to fix some merge conflicts

@syborg64 syborg64 linked an issue Mar 12, 2025 that may be closed by this pull request
3 tasks
@syborg64 syborg64 changed the title PBR materials Rendering Improvements Mar 12, 2025
@syborg64 syborg64 marked this pull request as draft April 1, 2025 04:10
@syborg64
Copy link
Copy Markdown
Contributor Author

syborg64 commented Apr 1, 2025

waiting on #20 to merge first

@syborg64 syborg64 marked this pull request as ready for review April 5, 2025 09:22
@@ -0,0 +1,158 @@
/*
** Agartha-Software, 2023
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2025

endif()
if (UNIX)
# target_link_libraries(assets PRIVATE GLEW::glew glfw glm::glm OpenGL::GL)
target_link_libraries(assets PRIVATE GLEW::glew glfw glm::glm OpenGL::GL)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is glm public only on windows

}
// static DEBUG flag - if set to false then, errors aside, we'll run completely silent
#ifndef DEBUG
static const bool DEBUG = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a DEBUG = false when !DEBUG?

@@ -1,16 +1,24 @@
// clang-format off
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To remove

#define STBI_MALLOC(sz) ((void *)(new char[sz]))
#define STBI_REALLOC_SIZED(p, oldsz, newsz) \
(size_t(newsz) <= size_t(oldsz) ? (void *)(p) \
: [](void *lp, size_t loldsz, size_t lnewsz) -> void * { \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set clearer variable names

pipeline::Light gl_light = o_point.has_value() ? pipeline::Light(o_point.value(), tm) : //
(o_spot.has_value() ? pipeline::Light(o_spot.value(), tm) : //
(o_sun.has_value() ? pipeline::Light(o_sun.value(), tm) : //
throw std::runtime_error("")));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

complete the runtime error content

uint16_t shadow_viewlayer_bits;
};

class SunLight {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to other SunLight file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shadomapped Lights Support PBR materials

2 participants