xzw 1 anno fa
parent
commit
8725dc056d
2 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 1 1
      src/Features.js
  2. 4 1
      src/materials/shaders/pointcloud_new.vs

+ 1 - 1
src/Features.js

@@ -5,7 +5,7 @@ export const Features = (function () {
 
 	let gl = ftCanvas.getContext('webgl') || ftCanvas.getContext('experimental-webgl');
 	if (gl === null){ 
-		return null; 
+		return {}; 
 	}
 
 	// -- code taken from THREE.WebGLRenderer --

+ 4 - 1
src/materials/shaders/pointcloud_new.vs

@@ -1025,7 +1025,10 @@ void main() {
        // vOpacity = clamp(vOpacity, 0.001, 1.0);  
     }  
     
-    vOpacity *= max(0.02,  pow((1.0 - normalZ),5.0));//垂直朝相机时降低透明度 
+    vOpacity *= max(0.05,  pow((1.0 - normalZ),5.0));//垂直朝相机时降低透明度 
+      
+
+
 
     // POINT SIZE
     float pointSize = getPointSize();