Skip to content

Commit

Permalink
Update cQuantization.fx
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Sep 29, 2024
1 parent dcca384 commit 50b6f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shaders/cQuantization.fx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ uniform int _DitherMethod <
float4 PS_Color(CShade_VS2PS_Quad Input) : SV_TARGET0
{
float2 ColorMapTex = (_Pixelate) ? floor(Input.Tex0 * _Resolution) / _Resolution : Input.Tex0;
float4 ColorMap = tex2D(CShade_SampleGammaTex, ColorMapTex);
float2 HashTex = (_Pixelate) ? floor(Input.Tex0 * _Resolution) : Input.HPos.xy;

float2 HashTex = floor(Input.Tex0 * _Resolution);
float4 ColorMap = tex2D(CShade_SampleGammaTex, ColorMapTex);
float3 Dither = 0.0;

switch (_DitherMethod)
Expand Down

0 comments on commit 50b6f7e

Please sign in to comment.