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

idTechX can't display shader effects on top of other shader effects #31

Open
BielBdeLuna opened this issue Jan 30, 2016 · 3 comments
Open

Comments

@BielBdeLuna
Copy link
Member

imagine the common situation where a window with deformation shader is behind an explosion with another deformation shader, only one deformation is displayed (the one closer)

I wonder if this issue could be resolved with some JIT magic on a per frame basis, so the first step would be to identify the shaders every pixel is subjected to, then on those pixels subjected to more than one shader dos some JIT adding the shaders together creating a new shader (just for that pixel!) in order to render the pixel correcly

maybe there could be a way to simplify the process and identify what pixels would benefit from the same shader?

do you think that it could be possible?

@BielBdeLuna BielBdeLuna changed the title idTechX can't display shader effects on top of shader effects idTechX can't display shader effects on top of other shader effects Jan 30, 2016
@ghost
Copy link

ghost commented Apr 12, 2016

I still don't know how these things work, but can the shader(assuming screen-space) be composited to the world-space or z-depth?

@BielBdeLuna
Copy link
Member Author

maybe a render to texture feature can be setup, render to texture the screenspace of every instance, and keep rendering an area for as much as shaders is subjected to.

@ghost
Copy link

ghost commented Apr 13, 2016

Then destroy when it is not needed anymore.

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

No branches or pull requests

1 participant