Skip to content

Commit

Permalink
cEnsor: Changed default search
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Nov 16, 2024
1 parent bd4a8d1 commit cef6bb7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions shaders/cEnsor.fx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ uniform int _Blockiness <
> = 3;

uniform int _DetectionMode <
ui_label = "Search Mode";
ui_label = "Search Algorithm";
ui_type = "combo";
ui_items = "Color\0\HSV: Hue\0HSV: Saturation\0HSV: Value\0HSL: Hue\0HSL: Saturation\0HSL: Lightness\0HSI: Hue\0HSI: Saturation\0HSI: Intensity\0";
> = 0;
> = 3;

uniform int _Comparison <
ui_label = "Search Operator";
Expand All @@ -42,7 +42,18 @@ uniform int _DisplayMode <
#include "shared/cBlend.fxh"

CREATE_TEXTURE_POOLED(TempTex0_RGBA8_8, BUFFER_SIZE_0, RGBA8, 8)
CREATE_SRGB_SAMPLER(SampleTempTex0, TempTex0_RGBA8_8, POINT, MIRROR, MIRROR, MIRROR)

sampler2D SampleTempTex0
{
Texture = TempTex0_RGBA8_8;
MagFilter = LINEAR;
MinFilter = LINEAR;
MipFilter = LINEAR;
AddressU = MIRROR;
AddressV = MIRROR;
AddressW = MIRROR;
SRGBTexture = READ_SRGB;
};

float4 PS_Blit(CShade_VS2PS_Quad Input) : SV_TARGET0
{
Expand Down

0 comments on commit cef6bb7

Please sign in to comment.