Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ float get_coefficients(in sampler2DArray coefficients, int index) {
float total_absorbance(in sampler2DArray coefficients) {
float scale_coefficient = get_coefficients(coefficients, TRANSPARENCY_WAVELET_COEFFICIENT_COUNT - 1);
if (scale_coefficient == 0) {
return 0;
return 0.;
}

int index_b = TRANSPARENCY_WAVELET_COEFFICIENT_COUNT - 1;
Expand All @@ -76,7 +76,7 @@ float total_absorbance(in sampler2DArray coefficients) {
float absorbance(in sampler2DArray coefficients, float depth) {
float scale_coefficient = get_coefficients(coefficients, TRANSPARENCY_WAVELET_COEFFICIENT_COUNT - 1);
if (scale_coefficient == 0) {
return 0;
return 0.;
}

depth *= float(TRANSPARENCY_WAVELET_COEFFICIENT_COUNT-1) / TRANSPARENCY_WAVELET_COEFFICIENT_COUNT;
Expand Down Expand Up @@ -120,7 +120,7 @@ float absorbance(in sampler2DArray coefficients, float depth) {
float signal_corrected_absorbance(in sampler2DArray coefficients, float depth, float signal) {
float scale_coefficient = get_coefficients(coefficients, TRANSPARENCY_WAVELET_COEFFICIENT_COUNT - 1);
if (scale_coefficient == 0) {
return 0;
return 0.;
}

depth *= float(TRANSPARENCY_WAVELET_COEFFICIENT_COUNT-1) / TRANSPARENCY_WAVELET_COEFFICIENT_COUNT;
Expand Down
Loading