This commit is contained in:
mschuetz 2014-08-09 12:30:16 +02:00
parent beca2f21cd
commit fa84d82722
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ Potree.PointCloudOctree.prototype.update = function(camera){
var visible = true;
visible = visible && frustum.intersectsBox(box);
if(object.level > 0){
if(object.level > 3){
visible = visible && Math.pow(radius, 0.8) / distance > (1 / this.LOD);
visible = visible && (this.numVisiblePoints + object.numPoints < Potree.pointLoadLimit);
visible = visible && (this.numVisibleNodes <= this.maxVisibleNodes);

View File

@ -5,7 +5,7 @@ Potree.PointCloudIntensityMaterial = function(){
};
var uniforms = {
color: { type: "c", value: new THREE.Color( 0xffffff ) },
size: { type: "f", value: 500 }
size: { type: "f", value: 2500 }
};
this.setValues({
@ -27,7 +27,7 @@ Potree.PointCloudIntensityMaterial.vs_points = [
"varying vec3 vColor; ",
" ",
"void main() { ",
" vColor = vec3(1.0, 1.0, 1.0) * (intensity / 600.0); ",
" vColor = vec3(1.0, 1.0, 1.0) * (intensity / 500.0); ",
" vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 ); ",
" ",
" gl_PointSize = size * 1.0 / length( mvPosition.xyz ); ",