diff --git a/kraken/KRPipeline.cpp b/kraken/KRPipeline.cpp index c74a845..fef55b7 100644 --- a/kraken/KRPipeline.cpp +++ b/kraken/KRPipeline.cpp @@ -66,7 +66,6 @@ const char* KRPipeline::KRENGINE_PUSH_CONSTANT_NAMES[] = { "projection_matrix", // PushConstant::projection_matrix "camera_position_model_space", // PushConstant::camerapos_model_space "viewport", // PushConstant::viewport - "viewport_downsample", // PushConstant::viewport_downsample "diffuseTexture", // PushConstant::diffusetexture "specularTexture", // PushConstant::speculartexture "reflectionCubeTexture", // PushConstant::reflectioncubetexture @@ -800,10 +799,6 @@ bool KRPipeline::bind(VkCommandBuffer& commandBuffer, KRCamera& camera, const KR ); } - if (hasPushConstant(PushConstant::viewport_downsample)) { - setPushConstant(PushConstant::viewport_downsample, camera.getDownsample()); - } - // Fog parameters setPushConstant(PushConstant::fog_near, camera.settings.fog_near); setPushConstant(PushConstant::fog_far, camera.settings.fog_far); diff --git a/standard_assets/shaders/post_fx.vert b/standard_assets/shaders/post_fx.vert index 8af6b13..7da09d7 100644 --- a/standard_assets/shaders/post_fx.vert +++ b/standard_assets/shaders/post_fx.vert @@ -29,8 +29,6 @@ // or implied, of Kearwood Gilbert. // - -uniform vec2 viewport_downsample; in vec4 vertex_position; in vec4 vertex_uv; @@ -39,5 +37,5 @@ out vec2 textureCoordinate; void main() { gl_Position = vertex_position; - textureCoordinate = vertex_uv.xy * viewport_downsample.xy; + textureCoordinate = vertex_uv.xy; } \ No newline at end of file