blob: 381566d37c40eb1f930ce47c5f7fb476d15b3c09 (
plain)
1
2
3
4
5
6
7
|
ivec2 Helper_TexelFetchScale(ivec2 inputVec, int samplerIndex) {
float scale = cp_renderScale[samplerIndex];
if (scale == 1.0) {
return inputVec;
}
return ivec2(vec2(inputVec) * scale);
}
|