mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-18 00:48:47 +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
|
#else
|
||||||
// Step is adapted to Mip level
|
// Step is adapted to Mip level
|
||||||
float radius = deltaRadius;
|
float radius = deltaRadius;
|
||||||
float mipLevel = evalMipFromRadius(radius * float(doFetchMips()));
|
float mipLevel = float(evalMipFromRadius(radius * float(doFetchMips())));
|
||||||
|
|
||||||
while (radius<=searchRadius) {
|
while (radius<=searchRadius) {
|
||||||
fragUVPos += deltaTapUV;
|
fragUVPos += deltaTapUV;
|
||||||
|
@ -530,8 +530,8 @@ float computeOcclusion(ivec4 side, vec2 fragUVPos, vec3 fragPositionES, TBNFrame
|
||||||
|
|
||||||
if (tapMipZ.x != mipLevel) {
|
if (tapMipZ.x != mipLevel) {
|
||||||
mipLevel = tapMipZ.x;
|
mipLevel = tapMipZ.x;
|
||||||
deltaRadius *= 2;
|
deltaRadius *= 2.0;
|
||||||
deltaTapUV *= 2;
|
deltaTapUV *= 2.0;
|
||||||
sideDepthSize = getDepthTextureSideSize(int(mipLevel));
|
sideDepthSize = getDepthTextureSideSize(int(mipLevel));
|
||||||
}
|
}
|
||||||
radius += deltaRadius;
|
radius += deltaRadius;
|
||||||
|
|
Loading…
Reference in a new issue