added color property to PointCloudColorMaterial

This commit is contained in:
mschuetz 2014-10-27 12:26:01 +01:00
parent 050e4c58b2
commit a7ffcfe40d

View File

@ -33,6 +33,15 @@ Object.defineProperty(Potree.PointCloudColorMaterial.prototype, "size", {
}
});
Object.defineProperty(Potree.PointCloudColorMaterial.prototype, "color", {
get: function(){
return this.uniforms.uCol.value;
},
set: function(value){
this.uniforms.uCol.value.copy(value);
}
});
Potree.PointCloudColorMaterial.vs_points = [
"uniform float size; ",
"uniform vec3 uCol; ",