slang-shaders/border/shaders/average_fill/crop_and_sample_left.slang

13 lines
428 B
Plaintext

#version 450
// See compose.slang for copyright and other information.
vec4 get_effective_corners(vec4 crop, vec4 input_size, float sample_size) {
return input_size.zwzw * vec4(crop.y, //
crop.x, //
crop.y + sample_size, //
input_size.y - crop.z);
}
#include "crop_and_sample_common.inc"