Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 26, 2023
1 parent 799add5 commit 208a206
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion data/base/shaders/vk/world_to_screen.frag
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ layout(location = 0) out vec4 FragColor;
void main()
{
vec3 texColour = texture(Texture, texCoords).rgb;
// texColour = pow(texColour, vec3(1.0/2.2)); // TODO: Use input gamma (also change everything over to sRGB?)

FragColor = vec4(texColour, 1.0);
}
2 changes: 0 additions & 2 deletions data/base/shaders/vk/world_to_screen.vert
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ void main()
{
gl_Position = vec4(vertexPos.x, vertexPos.y, 0.0, 1.0);
texCoords = 0.5 * gl_Position.xy + vec2(0.5);
// gl_Position.y *= -1.;
// gl_Position.z = (gl_Position.z + gl_Position.w) / 2.0;
}
4 changes: 0 additions & 4 deletions lib/ivis_opengl/gfx_api_vk.h
Original file line number Diff line number Diff line change
Expand Up @@ -697,15 +697,11 @@ struct VkRoot final : gfx_api::context
// render passes
std::vector<RenderPassDetails> renderPasses;

// default renderpass
// RenderPassDetails defaultRenderpass = RenderPassDetails(DEFAULT_RENDER_PASS_ID);

// depth render passes
vk::Format depthBufferFormat = vk::Format::eUndefined;
uint32_t depthMapSize = 4096;
VkDepthMapImage* pDepthMapImage = nullptr;
std::vector<vk::ImageView> depthMapCascadeView;
// std::vector<RenderPassDetails> depthRenderPasses;

// scene render pass
vk::Format sceneImageFormat = vk::Format::eUndefined;
Expand Down

0 comments on commit 208a206

Please sign in to comment.