minerender 2.1.0-alpha.46 → 2.1.0-alpha.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -842,7 +842,12 @@ var init_Materials = __esm({
842
842
  const vertShader = `
843
843
  uniform bool SHADE;
844
844
 
845
+ // Keep MSAA edge pixels from sampling outside the face's atlas region.
846
+ #if __VERSION__ >= 300
847
+ centroid out vec2 vUv;
848
+ #else
845
849
  varying vec2 vUv;
850
+ #endif
846
851
  varying vec3 vTint;
847
852
  varying float light;
848
853
  varying float lift;
@@ -899,7 +904,11 @@ var init_Materials = __esm({
899
904
  uniform bool EMISSIVE;
900
905
  uniform float BRIGHTNESS;
901
906
 
907
+ #if __VERSION__ >= 300
908
+ centroid in vec2 vUv;
909
+ #else
902
910
  varying vec2 vUv;
911
+ #endif
903
912
  varying vec3 vTint;
904
913
  varying float light;
905
914
  varying float lift;