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

Add ability to use unshaded SCREEN_TEXTURE in shaders #9997

Open
Myle21 opened this issue Jun 18, 2024 · 2 comments
Open

Add ability to use unshaded SCREEN_TEXTURE in shaders #9997

Myle21 opened this issue Jun 18, 2024 · 2 comments

Comments

@Myle21
Copy link

Myle21 commented Jun 18, 2024

Describe the project you are working on

A 3D project with heavy use of screen space effects

Describe the problem or limitation you are having in your project

I am unable to get an unshaded SCREEN_TEXTURE without creating and modifying a new viewport, which would lead to a much worse performance

Describe the feature / enhancement and how it helps to overcome the problem or limitation

add ability to use hint_unshaded_screen_texture in shaders, it might be toggleable from project settings since not every project needs it

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Add pre lightning pass texture that is accessible from shaders, something like
uniform sampler2D unlit_screen_texture : hint_unshaded_screen_texture;

If this enhancement will not be used often, can it be worked around with a few lines of script?

No, it requires a whole new viewport which would lead to much worse performance

Is there a reason why this should be core and not an add-on in the asset library?

As mentioned before, I am unsure if this can be made from addon

@Calinou
Copy link
Member

Calinou commented Jun 18, 2024

@clayjohn
Copy link
Member

As far as I know, this can't be done without #8295.

From the sounds of it they are asking for access to a diffuse color G-buffer. Which, as you pointed out, we don't have

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

3 participants