Skip to content

Johnr24/apply_internal_lut_contents_dctl

Repository files navigation

A DCTL for applying a LUT inside the DCTL

This means that you can encrypt and time limit the use on a lut

DEFINE_CUBE_LUT(name_of_lut_goes_in_these_brackets_must_be_identical)
{
    THIS_TEXT_SHOULD_BE_REMOVED_AND_THE_CONTENTS_OF_A_LUT_GOES_IN_ITS_PLACE
}

__DEVICE__ float3 transform(int p_Width, int p_Height, int p_X, int p_Y, float p_R, float p_G, float p_B)
{
    float r = p_R;
    float g = p_G;
    float b = p_B;

    const float3 res = APPLY_LUT(r, g, b, name_of_lut_goes_in_these_brackets_must_be_identical);

    return res;
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published