Explorar o código

Fix a visual glitch where the label border was initially rendered with
half of the intended size.

Michal Malý %!s(int64=3) %!d(string=hai) anos
pai
achega
de77f6ac59
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-geo/geometry/text/text.ts

+ 1 - 1
src/mol-geo/geometry/text/text.ts

@@ -245,7 +245,7 @@ export namespace Text {
             ...BaseGeometry.createValues(props, counts),
             uSizeFactor: ValueCell.create(props.sizeFactor),
 
-            uBorderWidth: ValueCell.create(clamp(props.borderWidth / 2, 0, 0.5)),
+            uBorderWidth: ValueCell.create(clamp(props.borderWidth, 0, 0.5)),
             uBorderColor: ValueCell.create(Color.toArrayNormalized(props.borderColor, Vec3.zero(), 0)),
             uOffsetX: ValueCell.create(props.offsetX),
             uOffsetY: ValueCell.create(props.offsetY),