From 0f22ac4915d6299ddb7bd30bae4fbc3c82683d32 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Mon, 20 Jun 2022 05:55:26 +0200 Subject: [PATCH] :wrench: Remove implicit casts --- resources/shaders/incinerate.frag | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/shaders/incinerate.frag b/resources/shaders/incinerate.frag index f8cf2e7..ba705fc 100644 --- a/resources/shaders/incinerate.frag +++ b/resources/shaders/incinerate.frag @@ -47,11 +47,11 @@ void main() { float mask = mix(circle, smokeNoise, 0.2 * uTurbulence * uScale); float smokeMask = - smoothstep(0, 1, (mask - smokeRange.x) / SMOKE_WIDTH) * getRelativeEdgeMask(0.2); + smoothstep(0.0, 1.0, (mask - smokeRange.x) / SMOKE_WIDTH) * getRelativeEdgeMask(0.2); float flameMask = - smoothstep(0, 1, (mask - flameRange.x) / FLAME_WIDTH) * getRelativeEdgeMask(0.1); - float fireMask = smoothstep(1, 0, abs(mask - hideThreshold) / BURN_WIDTH); - float scorchMask = smoothstep(1, 0, (mask - scorchRange.x) / SCORCH_WIDTH); + smoothstep(0.0, 1.0, (mask - flameRange.x) / FLAME_WIDTH) * getRelativeEdgeMask(0.1); + float fireMask = smoothstep(1.0, 0.0, abs(mask - hideThreshold) / BURN_WIDTH); + float scorchMask = smoothstep(1.0, 0.0, (mask - scorchRange.x) / SCORCH_WIDTH); if (uForOpening) { scorchMask = 1.0 - scorchMask;