From 829e5ff44f4ccffeb8458b5ec20753e8d6e09f4c Mon Sep 17 00:00:00 2001 From: Olivier Prat Date: Thu, 8 Nov 2018 13:37:22 +0100 Subject: [PATCH] Same android problem fix, but elsewhere --- libraries/render-utils/src/ssao.slh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/render-utils/src/ssao.slh b/libraries/render-utils/src/ssao.slh index af7f8029b8..942578fc44 100644 --- a/libraries/render-utils/src/ssao.slh +++ b/libraries/render-utils/src/ssao.slh @@ -520,7 +520,7 @@ float computeOcclusion(ivec4 side, vec2 fragUVPos, vec3 fragPositionES, TBNFrame #else // Step is adapted to Mip level float radius = deltaRadius; - float mipLevel = evalMipFromRadius(radius * float(doFetchMips())); + float mipLevel = float(evalMipFromRadius(radius * float(doFetchMips()))); while (radius<=searchRadius) { fragUVPos += deltaTapUV; @@ -530,8 +530,8 @@ float computeOcclusion(ivec4 side, vec2 fragUVPos, vec3 fragPositionES, TBNFrame if (tapMipZ.x != mipLevel) { mipLevel = tapMipZ.x; - deltaRadius *= 2; - deltaTapUV *= 2; + deltaRadius *= 2.0; + deltaTapUV *= 2.0; sideDepthSize = getDepthTextureSideSize(int(mipLevel)); } radius += deltaRadius;