Skip to content

Commit 65c6e94

Browse files
committed
CShade: Added generic transformation and texture addressing
1 parent 31e29c7 commit 65c6e94

25 files changed

+137
-56
lines changed

shaders/cAntiAliasing.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#define RELATIVE_THRESHOLD 0.125
1818
#define SUBPIXEL_BLENDING 0.75
1919

20-
#include "shared/cShade.fxh"
2120
#include "shared/cColor.fxh"
21+
#include "shared/cShade.fxh"
2222
#include "shared/cBlend.fxh"
2323

2424
float SampleLuma(float2 Tex, float2 Offset, float2 Delta)

shaders/cAutoExposure.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ uniform bool _DisplaySpotMeterMask <
4545
> = false;
4646

4747
#include "shared/cMacros.fxh"
48-
#include "shared/cShade.fxh"
4948
#include "shared/cProcedural.fxh"
5049

5150
#define INCLUDE_CCAMERA_INPUT
@@ -55,6 +54,7 @@ uniform bool _DisplaySpotMeterMask <
5554
#define INCLUDE_CTONEMAP_OUTPUT
5655
#include "shared/cTonemap.fxh"
5756

57+
#include "shared/cShade.fxh"
5858
#include "shared/cBlend.fxh"
5959

6060
/*

shaders/cBlend.fx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
#include "shared/cShade.fxh"
3-
42
/*
53
[Shader Options]
64
*/
@@ -21,6 +19,8 @@ uniform float3 _DestFactor <
2119
ui_type = "drag";
2220
> = 1.0;
2321

22+
#include "shared/cShade.fxh"
23+
2424
/*
2525
[Textures & Samplers]
2626
*/

shaders/cBloom.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ uniform float _Level1Weight <
108108
ui_max = 1.0;
109109
> = 1.0;
110110

111-
#include "shared/cShade.fxh"
112111
#include "shared/cBlur.fxh"
113112
#include "shared/cMath.fxh"
114113

@@ -119,6 +118,7 @@ uniform float _Level1Weight <
119118
#define INCLUDE_CTONEMAP_OUTPUT
120119
#include "shared/cTonemap.fxh"
121120

121+
#include "shared/cShade.fxh"
122122
#include "shared/cBlend.fxh"
123123

124124
#ifndef USE_AUTOEXPOSURE

shaders/cCheckerBoard.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ uniform bool _InvertCheckerboard <
2727
ui_type = "radio";
2828
> = false;
2929

30-
#include "shared/cShade.fxh"
3130
#include "shared/cMath.fxh"
31+
#include "shared/cShade.fxh"
3232
#include "shared/cBlend.fxh"
3333

3434
/*

shaders/cChromaticity.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ uniform int _Select <
99
ui_items = "Length (XY)\0Length (XYZ)\0Average (XY)\0Average (XYZ)\0Sum (XY)\0Sum (XYZ)\0Max (XY)\0Max (XYZ)\0Ratio (XY)\0Spherical (XY)\0Hue-Saturation (HSI)\0Hue-Saturation (HSL)\0Hue-Saturation (HSV)\0CoCg (XY)\0CrCb (XY)\0";
1010
> = 0;
1111

12-
#include "shared/cShade.fxh"
1312
#include "shared/cColor.fxh"
13+
#include "shared/cShade.fxh"
1414
#include "shared/cBlend.fxh"
1515

1616
/*

shaders/cCircles.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define ENABLE_MONO 0
88
#endif
99

10-
#include "shared/cShade.fxh"
1110
#include "shared/cMacros.fxh"
1211
#include "shared/cColor.fxh"
1312
#include "shared/cMath.fxh"
@@ -139,6 +138,7 @@ uniform float3 _BackColor <
139138
> = 0;
140139
#endif
141140

141+
#include "shared/cShade.fxh"
142142
#include "shared/cBlend.fxh"
143143

144144
/*

shaders/cColorBand.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ uniform int _DitherMethod <
1616
ui_items = "None\0Hash\0Interleaved Gradient Noise\0";
1717
> = 0;
1818

19-
#include "shared/cShade.fxh"
2019
#include "shared/cProcedural.fxh"
20+
#include "shared/cShade.fxh"
2121
#include "shared/cBlend.fxh"
2222

2323
/*

shaders/cContrastNormalization.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ uniform int _Select <
55
ui_items = "Local Contrast Normalization\0Census Transform\0";
66
> = 0;
77

8-
#include "shared/cShade.fxh"
98
#include "shared/cColor.fxh"
109
#include "shared/cMath.fxh"
10+
#include "shared/cShade.fxh"
1111
#include "shared/cBlend.fxh"
1212

1313
/*

shaders/cEnsor.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ namespace cEnsor
3333
ui_items = "Output\0Mask\0";
3434
> = 0;
3535

36-
#include "shared/cShade.fxh"
3736
#include "shared/cColor.fxh"
37+
#include "shared/cShade.fxh"
3838
#include "shared/cBlend.fxh"
3939

4040
CREATE_TEXTURE_POOLED(TempTex0_RGBA8, BUFFER_SIZE_0, RGBA8, 8)

0 commit comments

Comments
 (0)