Skip to content

Commit 181edc1

Browse files
committed
Overtly flag up uvec -> vec conversions.
1 parent e539c55 commit 181edc1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Outputs/OpenGL/Shaders/CompositionShader.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ vec2 boxed(vec2 val) {
173173
174174
vec4 sample_composite() {
175175
return vec4(
176-
clamp(texture(source, coordinate).r, 0.0, 1.0),
176+
clamp(float(texture(source, coordinate).r), 0.0, 1.0),
177177
boxed(quadrature()),
178178
compositeAmplitude
179179
);
180180
}
181181
182182
vec3 sample_rgb() {
183-
return clamp(texture(source, coordinate).rrr, vec3(0.0), vec3(1.0));
183+
return clamp(vec3(texture(source, coordinate).rrr), vec3(0.0), vec3(1.0));
184184
}
185185
186186
#endif
@@ -191,14 +191,14 @@ vec2 boxed(vec2 val) {
191191
192192
vec4 sample_composite() {
193193
return vec4(
194-
texture(source, coordinate).r / 255.0,
194+
float(texture(source, coordinate).r) / 255.0,
195195
boxed(quadrature()),
196196
compositeAmplitude
197197
);
198198
}
199199
200200
vec3 sample_rgb() {
201-
return texture(source, coordinate).rrr / 255.0;
201+
return vec3(texture(source, coordinate).rrr) / 255.0;
202202
}
203203
204204
#endif
@@ -208,7 +208,7 @@ vec2 boxed(vec2 val) {
208208
#ifdef INPUT_PHASE_LINKED_LUMINANCE8
209209
210210
vec4 sample_composite() {
211-
vec4 source = texture(source, coordinate) / 255.0;
211+
vec4 source = vec4(texture(source, coordinate)) / 255.0;
212212
int offset = int(floor(unitPhase * 4.0)) & 3;
213213
return vec4(
214214
source[offset],
@@ -227,7 +227,7 @@ vec2 boxed(vec2 val) {
227227
#define SYNTHESISE_FROM_RAW_SVIDEO
228228
229229
vec2 sample_svideo_raw() {
230-
vec2 source = texture(source, coordinate).rg / 255.0;
230+
vec2 source = vec2(texture(source, coordinate).rg) / 255.0;
231231
float phaseOffset = source.g * 3.141592654 * 4.0;
232232
float chroma = step(source.g, 0.75) * cos(phaseOffset + phase);
233233
@@ -297,7 +297,7 @@ vec2 boxed(vec2 val) {
297297
#define SYNTHESISE_COMPOSITE
298298
299299
vec3 sample_rgb() {
300-
return texture(source, coordinate).rgb / 255.0;
300+
return vec3(texture(source, coordinate).rgb) / 255.0;
301301
}
302302
303303
#endif

0 commit comments

Comments
 (0)