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

Fragment shaders pipelines and Camera based post processing #3403

Open
1 of 5 tasks
renancaraujo opened this issue Dec 14, 2024 · 1 comment
Open
1 of 5 tasks

Fragment shaders pipelines and Camera based post processing #3403

renancaraujo opened this issue Dec 14, 2024 · 1 comment
Assignees

Comments

@renancaraujo
Copy link
Member

renancaraujo commented Dec 14, 2024

Problem to solve

A very common, necessity on Gamedev is the post-processing of pixels. This enables the creation of special effects, for example:

  • Reflections
  • Refractions
  • Fog
  • Lightenings and explosions

This is done via first rendering elements of a game and using the result as an input (texture) of a fragment shader.

That can be done in a succession, resulting in an effective pipeline of fragment shaders.

Proposal

  • Introduce a way to dynamically preload fragment programs
  • Introduce an API represent shader effects (with type-safe inputs (uniforms/textures))
  • Apply Effects to Cameras
  • Refactor layer API to prevent pipeline re-rendering

More information

Insp: https://github.com/renancaraujo/turi

Other

  • Are you interested in working on a PR for this?
@dboylx
Copy link

dboylx commented Dec 18, 2024

great~~~~~~~~~~~~~~~ This is very necessary.

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

No branches or pull requests

2 participants