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

Use render-to-texture for texPreviousFrame (makes it 32bit instead of 8bit colors) #173

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cupe
Copy link
Contributor

@cupe cupe commented Mar 4, 2023

use render-to-texture instead of pixel readback, use 32bit texture as back buffer. no functional change for the user except fp32 RGBA in texPreviousFrame (was 8bit before). to allow better feedback effects (like fading colors more gracefully, and also shenanigans like particle systems stored in pixel colors)

@@ -96,6 +96,7 @@ void RenderFullscreenQuad();
bool ReloadShader( const char * szShaderCode, int nShaderCodeSize, char * szErrorBuffer, int nErrorBufferSize );
void SetShaderConstant( const char * szConstName, float x );
void SetShaderConstant( const char * szConstName, float x, float y );
void SetShaderConstant( const char * szConstName, unsigned int num, float* data );
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(oops, this function was added for a different change. will come with another PR)

@cupe
Copy link
Contributor Author

cupe commented Mar 4, 2023

argh, I forgot that other backends exist. I don't know shit about DX unfortunately.

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.

None yet

1 participant