mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 13:56:24 +02:00
Same android problem fix, but elsewhere
This commit is contained in:
parent
09b26db650
commit
829e5ff44f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue