Skip to content

Commit 276c01d

Browse files
authored
Merge pull request #739 from EarthyScience/jp/firefix
firefox is stricter. Needed inout
2 parents 17ce737 + 80f4f27 commit 276c01d

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎src/components/textures/shaders/chunks/commonHelpers.glsl‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,19 @@ float sample1(
3535
else return 0.0;
3636
}
3737

38-
bool isNaN(float x) {
39-
return x != x;
40-
}
41-
4238
bool isNaNBits(float x) {
4339
uint bits = floatBitsToUint(x);
4440
uint exponent = bits & 0x7F800000u;
4541
uint mantissa = bits & 0x007FFFFFu;
4642
return (exponent == 0x7F800000u) && (mantissa != 0u);
4743
}
4844

49-
void denorm(out float x){
45+
void denorm(inout float x){
5046
x *= (valueRange.y - valueRange.x);
5147
x += valueRange.x;
5248
}
5349

54-
void norm(out float x){
50+
void norm(inout float x){
5551
x -= valueRange.x;
5652
x /= (valueRange.y - valueRange.x);
5753
}
@@ -62,9 +58,9 @@ void rescaler(inout float x){
6258

6359
vec2 reprojector(
6460
#ifdef IS_FLAT
65-
out vec2 texCoord
61+
inout vec2 texCoord
6662
#else
67-
out vec3 texCoord
63+
inout vec3 texCoord
6864
#endif
6965
) {
7066
vec2 originalCoord = texCoord.xy;

0 commit comments

Comments
 (0)