Removed camera downsampling functionality no longer in use. A more advanced postfx and compositor will be implemented instead.
This commit is contained in:
@@ -66,7 +66,6 @@ const char* KRPipeline::KRENGINE_PUSH_CONSTANT_NAMES[] = {
|
|||||||
"projection_matrix", // PushConstant::projection_matrix
|
"projection_matrix", // PushConstant::projection_matrix
|
||||||
"camera_position_model_space", // PushConstant::camerapos_model_space
|
"camera_position_model_space", // PushConstant::camerapos_model_space
|
||||||
"viewport", // PushConstant::viewport
|
"viewport", // PushConstant::viewport
|
||||||
"viewport_downsample", // PushConstant::viewport_downsample
|
|
||||||
"diffuseTexture", // PushConstant::diffusetexture
|
"diffuseTexture", // PushConstant::diffusetexture
|
||||||
"specularTexture", // PushConstant::speculartexture
|
"specularTexture", // PushConstant::speculartexture
|
||||||
"reflectionCubeTexture", // PushConstant::reflectioncubetexture
|
"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
|
// Fog parameters
|
||||||
setPushConstant(PushConstant::fog_near, camera.settings.fog_near);
|
setPushConstant(PushConstant::fog_near, camera.settings.fog_near);
|
||||||
setPushConstant(PushConstant::fog_far, camera.settings.fog_far);
|
setPushConstant(PushConstant::fog_far, camera.settings.fog_far);
|
||||||
|
|||||||
@@ -29,8 +29,6 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
uniform vec2 viewport_downsample;
|
|
||||||
in vec4 vertex_position;
|
in vec4 vertex_position;
|
||||||
in vec4 vertex_uv;
|
in vec4 vertex_uv;
|
||||||
|
|
||||||
@@ -39,5 +37,5 @@ out vec2 textureCoordinate;
|
|||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
gl_Position = vertex_position;
|
gl_Position = vertex_position;
|
||||||
textureCoordinate = vertex_uv.xy * viewport_downsample.xy;
|
textureCoordinate = vertex_uv.xy;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user