Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G-buffer work #17

Open
1 of 4 tasks
numpad opened this issue Jul 9, 2020 · 0 comments
Open
1 of 4 tasks

G-buffer work #17

numpad opened this issue Jul 9, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@numpad
Copy link
Owner

numpad commented Jul 9, 2020

Basic deferred shading is implemented, but the current implementation is far from optimal. I need to think about the data we need in the G-buffer, how we actually lay it out to stay efficient and especially how we organize this in code.

Todo:

  • Structure G-buffer into a class (done in Engine Abstractions #56 )
  • Express shader passes and the information they share
  • Use the existing OpenGL depth buffer instead of my own
  • Remove the world position buffer, instead reconstruct it from depth buffer when needed

Challenges:

  • The G-buffer should be fairly flexible (lower graphics settings may not need a specific buffer)
  • The execution order of render passes should be more explicitly defined (?)
  • The first, basic world/entity render pass draws to the color, normal, position, depth buffers.The second decal render pass renders to color, normal buffer but requires the depth buffer. This should be handled better in code.
@numpad numpad created this issue from a note in Features (To do) Jul 9, 2020
@numpad numpad moved this from To do to In progress in Features Jul 9, 2020
@numpad numpad self-assigned this Jul 11, 2020
@numpad numpad added the feature A new feature to be implemented. label Jul 11, 2020
@numpad numpad added this to the v0.2 milestone Jul 11, 2020
@numpad numpad added enhancement New feature or request and removed feature A new feature to be implemented. labels Jul 11, 2020
@numpad numpad moved this from In progress to On Hold in Features Aug 11, 2020
@numpad numpad removed this from the v0.3 milestone Nov 7, 2020
@numpad numpad changed the title Implement deferred shading Rework deferred shading Jan 12, 2021
@numpad numpad changed the title Rework deferred shading G-Buffer work Jan 12, 2021
@numpad numpad changed the title G-Buffer work G-nuffer work Jan 12, 2021
@numpad numpad changed the title G-nuffer work G-buffer work Jan 12, 2021
@numpad numpad moved this from Preparations to In progress in Features Apr 16, 2021
@numpad numpad moved this from In progress to Preparations in Features Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Features
  
Preparations
Development

No branches or pull requests

1 participant