Skip to content

Commit

Permalink
Turn down transparency texture storage resolution (32f -> 16f)
Browse files Browse the repository at this point in the history
  • Loading branch information
scallyw4g committed Mar 27, 2024
1 parent 65fd2db commit dfa760f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jesse.make.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# OPT="-O2"
OPT="-O2"

./make.sh RunPoof
[ $? -ne 0 ] && exit 1
Expand Down
4 changes: 2 additions & 2 deletions src/engine/render/render_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,13 +578,13 @@ InitTransparencyRenderGroup(render_settings *Settings, transparency_render_group
{
u32 Channels = 4;
Group->AccumTex = GenTexture(TextureSize, CSz("Transparency Accum"), Channels);
GL.TexImage2D( GL_TEXTURE_2D, 0, GL_RGBA32F, TextureSize.x, TextureSize.y, 0, GL_RGBA, GL_FLOAT, 0);
GL.TexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, TextureSize.x, TextureSize.y, 0, GL_RGBA, GL_FLOAT, 0);
}

{
u32 Channels = 2;
Group->RevealTex = GenTexture(TextureSize, CSz("Transparency Reveal"), Channels);
GL.TexImage2D( GL_TEXTURE_2D, 0, GL_RG32F, TextureSize.x, TextureSize.y, 0, GL_RG, GL_FLOAT, 0);
GL.TexImage2D( GL_TEXTURE_2D, 0, GL_RG16F, TextureSize.x, TextureSize.y, 0, GL_RG, GL_FLOAT, 0);
}

// NOTE(Jesse): These have to be bound in this order because they're cleared
Expand Down

0 comments on commit dfa760f

Please sign in to comment.