mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-29 19:01:31 +11:00
e366c7524c
* Refactor scaling into include library Add separate H and V integer scale forcing Fix blur_fill; average fill still TODO Clean up and fix blur_fill; Initial docs; Avg fill TODO Mostly fix avg. fill; sampling TODO; Bump versions, add docs Fix H/V extension; Tweak default params Fix avg. fill Remove defines, create functions Reorder params Clean up Fix pixel_aa subpx sampling with rotation * Minor docs fix
14 lines
503 B
Plaintext
14 lines
503 B
Plaintext
#version 450
|
|
|
|
// See compose.slang for copyright and other information.
|
|
|
|
// Crop is rotated already.
|
|
vec4 get_effective_corners(vec4 crop, vec4 input_size, float sample_size) {
|
|
return input_size.zwzw * vec4(crop.y, //
|
|
input_size.y - crop.z - sample_size, //
|
|
input_size.x - crop.w, //
|
|
input_size.y - crop.z);
|
|
}
|
|
|
|
#include "crop_and_sample_common.slang"
|