diff --git a/packages/layers/src/polygon/shaders/extrude/polygon_extrude_frag.glsl b/packages/layers/src/polygon/shaders/extrude/polygon_extrude_frag.glsl index 8740925379..d594899aaf 100644 --- a/packages/layers/src/polygon/shaders/extrude/polygon_extrude_frag.glsl +++ b/packages/layers/src/polygon/shaders/extrude/polygon_extrude_frag.glsl @@ -16,7 +16,8 @@ void main() { float sidey = styleMappingMat[3][0]; float lightWeight = styleMappingMat[3][1]; - if(isSide < 1.0) { + // Tip: 部分机型 GPU 计算精度兼容 + if(isSide < 0.999) { // side face if(u_sidesurface < 1.0) { discard; diff --git a/packages/layers/src/polygon/shaders/extrude/polygon_extrude_picklight_frag.glsl b/packages/layers/src/polygon/shaders/extrude/polygon_extrude_picklight_frag.glsl index 8139c372b1..47dfac059f 100644 --- a/packages/layers/src/polygon/shaders/extrude/polygon_extrude_picklight_frag.glsl +++ b/packages/layers/src/polygon/shaders/extrude/polygon_extrude_picklight_frag.glsl @@ -16,7 +16,8 @@ void main() { float sidey = styleMappingMat[3][0]; float lightWeight = styleMappingMat[3][1]; - if(isSide < 1.0) { + // Tip: 部分机型 GPU 计算精度兼容 + if(isSide < 0.999) { // side face if(u_sidesurface < 1.0) { discard; diff --git a/packages/layers/src/polygon/shaders/extrude/polygon_extrudetex_frag.glsl b/packages/layers/src/polygon/shaders/extrude/polygon_extrudetex_frag.glsl index ad99997d59..1230a7bb6d 100644 --- a/packages/layers/src/polygon/shaders/extrude/polygon_extrudetex_frag.glsl +++ b/packages/layers/src/polygon/shaders/extrude/polygon_extrudetex_frag.glsl @@ -19,7 +19,8 @@ void main() { float topV = styleMappingMat[2][3]; float sidey = styleMappingMat[3][0]; - if(isSide < 1.0) { + // Tip: 部分机型 GPU 计算精度兼容 + if(isSide < 0.999) { // side face if(u_sidesurface < 1.0) { discard;