diff --git a/CfL_Prediction.glsl b/CfL_Prediction.glsl index d96fef2..74bde92 100644 --- a/CfL_Prediction.glsl +++ b/CfL_Prediction.glsl @@ -20,6 +20,14 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. +//!PARAM chroma_offset_x +//!TYPE float +0.0 + +//!PARAM chroma_offset_y +//!TYPE float +0.0 + //!HOOK CHROMA //!BIND LUMA //!BIND HOOKED @@ -30,7 +38,7 @@ //!DESC Chroma From Luma Prediction (Downscaling Luma) vec4 hook() { - return LUMA_texOff(0.0); + return LUMA_texOff(vec2(chroma_offset_x, chroma_offset_y)); } //!HOOK CHROMA diff --git a/CfL_Prediction_Lite.glsl b/CfL_Prediction_Lite.glsl index affbb0e..2770214 100644 --- a/CfL_Prediction_Lite.glsl +++ b/CfL_Prediction_Lite.glsl @@ -20,6 +20,14 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. +//!PARAM chroma_offset_x +//!TYPE float +0.0 + +//!PARAM chroma_offset_y +//!TYPE float +0.0 + //!HOOK CHROMA //!BIND LUMA //!BIND HOOKED @@ -30,7 +38,7 @@ //!DESC Chroma From Luma Prediction (Downscaling Luma) vec4 hook() { - return LUMA_texOff(0.0); + return LUMA_texOff(vec2(chroma_offset_x, chroma_offset_y)); } //!HOOK CHROMA