fix EDL mode checkbox display; #237
This commit is contained in:
parent
ceac183706
commit
cdefc62a2b
@ -570,6 +570,7 @@ Potree.Shaders["pointcloud.vs"] = [
|
||||
" #elif defined color_type_lod",
|
||||
" float depth = getLOD();",
|
||||
" float w = depth / 10.0;",
|
||||
" //float w = mod(depth, 4.0) / 3.0;",
|
||||
" vColor = texture2D(gradient, vec2(w,1.0-w)).rgb;",
|
||||
" #elif defined color_type_point_index",
|
||||
" vColor = indices.rgb;",
|
||||
@ -618,9 +619,9 @@ Potree.Shaders["pointcloud.vs"] = [
|
||||
" // ---------------------",
|
||||
" float pointSize = 1.0;",
|
||||
" ",
|
||||
" float projFactor = 1.0 / tan(fov / 2.0);",
|
||||
" projFactor /= vViewPosition.z;",
|
||||
" projFactor *= screenHeight / 2.0;",
|
||||
" float slope = tan(fov / 2.0);",
|
||||
" float projFactor = 0.5 * screenHeight / (slope * vViewPosition.z);",
|
||||
" ",
|
||||
" float r = spacing * 1.5;",
|
||||
" vRadius = r;",
|
||||
" #if defined fixed_point_size",
|
||||
|
||||
2
build/potree/potree.min.js
vendored
2
build/potree/potree.min.js
vendored
File diff suppressed because one or more lines are too long
@ -322,7 +322,7 @@ function initMaterials(){
|
||||
"Return Number",
|
||||
"Source",
|
||||
"Phong",
|
||||
"Level of Detail"
|
||||
"Level of Detail"
|
||||
];
|
||||
|
||||
var elMaterialList = document.getElementById("optMaterial");
|
||||
@ -519,6 +519,8 @@ function initAppearance(){
|
||||
$('#lblOpacity')[0].innerHTML = viewer.getOpacity().toFixed(2);
|
||||
$('#lblEDLRadius')[0].innerHTML = viewer.getEDLRadius().toFixed(1);
|
||||
$('#lblEDLStrength')[0].innerHTML = viewer.getEDLStrength().toFixed(1);
|
||||
$('#chkEDLEnabled')[0].checked = viewer.getEDLEnabled();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -247,6 +247,7 @@ Potree.Shaders["pointcloud.vs"] = [
|
||||
" #elif defined color_type_lod",
|
||||
" float depth = getLOD();",
|
||||
" float w = depth / 10.0;",
|
||||
" //float w = mod(depth, 4.0) / 3.0;",
|
||||
" vColor = texture2D(gradient, vec2(w,1.0-w)).rgb;",
|
||||
" #elif defined color_type_point_index",
|
||||
" vColor = indices.rgb;",
|
||||
@ -295,9 +296,9 @@ Potree.Shaders["pointcloud.vs"] = [
|
||||
" // ---------------------",
|
||||
" float pointSize = 1.0;",
|
||||
" ",
|
||||
" float projFactor = 1.0 / tan(fov / 2.0);",
|
||||
" projFactor /= vViewPosition.z;",
|
||||
" projFactor *= screenHeight / 2.0;",
|
||||
" float slope = tan(fov / 2.0);",
|
||||
" float projFactor = 0.5 * screenHeight / (slope * vViewPosition.z);",
|
||||
" ",
|
||||
" float r = spacing * 1.5;",
|
||||
" vRadius = r;",
|
||||
" #if defined fixed_point_size",
|
||||
|
||||
@ -246,6 +246,7 @@ void main() {
|
||||
#elif defined color_type_lod
|
||||
float depth = getLOD();
|
||||
float w = depth / 10.0;
|
||||
//float w = mod(depth, 4.0) / 3.0;
|
||||
vColor = texture2D(gradient, vec2(w,1.0-w)).rgb;
|
||||
#elif defined color_type_point_index
|
||||
vColor = indices.rgb;
|
||||
@ -294,9 +295,9 @@ void main() {
|
||||
// ---------------------
|
||||
float pointSize = 1.0;
|
||||
|
||||
float projFactor = 1.0 / tan(fov / 2.0);
|
||||
projFactor /= vViewPosition.z;
|
||||
projFactor *= screenHeight / 2.0;
|
||||
float slope = tan(fov / 2.0);
|
||||
float projFactor = 0.5 * screenHeight / (slope * vViewPosition.z);
|
||||
|
||||
float r = spacing * 1.5;
|
||||
vRadius = r;
|
||||
#if defined fixed_point_size
|
||||
|
||||
@ -322,7 +322,7 @@ function initMaterials(){
|
||||
"Return Number",
|
||||
"Source",
|
||||
"Phong",
|
||||
"Level of Detail"
|
||||
"Level of Detail"
|
||||
];
|
||||
|
||||
var elMaterialList = document.getElementById("optMaterial");
|
||||
@ -519,6 +519,8 @@ function initAppearance(){
|
||||
$('#lblOpacity')[0].innerHTML = viewer.getOpacity().toFixed(2);
|
||||
$('#lblEDLRadius')[0].innerHTML = viewer.getEDLRadius().toFixed(1);
|
||||
$('#lblEDLStrength')[0].innerHTML = viewer.getEDLStrength().toFixed(1);
|
||||
$('#chkEDLEnabled')[0].checked = viewer.getEDLEnabled();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user