Skip to content

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

Open
cupe wants to merge 5 commits intoGargaj:masterfrom
cupe:master
Open

Use render-to-texture for texPreviousFrame (makes it 32bit instead of 8bit colors)#173
cupe wants to merge 5 commits intoGargaj:masterfrom
cupe:master

Conversation

@cupe
Copy link
Copy Markdown
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)

Comment thread src/Renderer.h
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
Copy Markdown
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
Copy Markdown
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.

1 participant