Skip to content

Commit

Permalink
Merge pull request #167 from potree/develop
Browse files Browse the repository at this point in the history
update page template
  • Loading branch information
potree committed Oct 19, 2015
2 parents 9b4afbe + ad62320 commit 4b4455f
Show file tree
Hide file tree
Showing 45 changed files with 2,335 additions and 39,694 deletions.
2 changes: 1 addition & 1 deletion PotreeConverter/resources/page_template/build/js/laslaz.js

Large diffs are not rendered by default.

This file was deleted.

997 changes: 791 additions & 206 deletions PotreeConverter/resources/page_template/build/js/potree.js

Large diffs are not rendered by default.

This file was deleted.

28 changes: 16 additions & 12 deletions PotreeConverter/resources/page_template/build/shaders/shaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,16 +260,9 @@ Potree.Shaders["pointcloud.vs"] = [
" #elif defined color_type_classification",
" float c = mod(classification, 16.0);",
" vec2 uv = vec2(c / 255.0, 0.5);",
" vColor = texture2D(classificationLUT, uv).rgb;",
" ",
" // TODO only for testing - removing points with class 7",
" if(classification == 7.0){",
" gl_Position = vec4(100.0, 100.0, 100.0, 0.0);",
" }",
" vec4 classColor = texture2D(classificationLUT, uv);",
" vColor = classColor.rgb;",
" #elif defined color_type_return_number",
" //float w = (returnNumber - 1.0) / 4.0 + 0.1;",
" //vColor = texture2D(gradient, vec2(w, 1.0 - w)).rgb;",
" ",
" if(numberOfReturns == 1.0){",
" vColor = vec3(1.0, 1.0, 0.0);",
" }else{",
Expand All @@ -281,7 +274,6 @@ Potree.Shaders["pointcloud.vs"] = [
" vColor = vec3(0.0, 1.0, 0.0);",
" }",
" }",
" ",
" #elif defined color_type_source",
" float w = mod(pointSourceID, 10.0) / 10.0;",
" vColor = texture2D(gradient, vec2(w,1.0 - w)).rgb;",
Expand All @@ -291,6 +283,16 @@ Potree.Shaders["pointcloud.vs"] = [
" vColor = color;",
" #endif",
" ",
" {",
" // TODO might want to combine with the define block above to avoid reading same LUT two times",
" float c = mod(classification, 16.0);",
" vec2 uv = vec2(c / 255.0, 0.5);",
" ",
" if(texture2D(classificationLUT, uv).a == 0.0){",
" gl_Position = vec4(100.0, 100.0, 100.0, 0.0);",
" }",
" }",
" ",
" //if(vNormal.z < 0.0){",
" // gl_Position = vec4(1000.0, 1000.0, 1000.0, 1.0);",
" //}",
Expand Down Expand Up @@ -694,7 +696,9 @@ Potree.Shaders["edl.fs"] = [
"uniform vec2 neighbours[NEIGHBOUR_COUNT];",
"uniform vec3 lightDir;",
"uniform float expScale;",
"uniform float edlScale;",
"uniform float radius;",
"uniform float opacity;",
"",
"//uniform sampler2D depthMap;",
"uniform sampler2D colorMap;",
Expand Down Expand Up @@ -753,14 +757,14 @@ Potree.Shaders["edl.fs"] = [
" float linearDepth = logToLinear(texture2D(colorMap, vUv).a);",
" ",
" float f = computeObscurance(linearDepth);",
" f = exp(-expScale * f);",
" f = exp(-expScale * edlScale * f);",
" ",
" vec4 color = texture2D(colorMap, vUv);",
" if(color.a == 0.0 && f >= 1.0){",
" discard;",
" }",
" ",
" gl_FragColor = vec4(color.rgb * f, 1.0);",
" gl_FragColor = vec4(color.rgb * f, opacity);",
"}",
"",
].join("\n");
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions PotreeConverter/resources/page_template/docs/build.md

This file was deleted.

98 changes: 0 additions & 98 deletions PotreeConverter/resources/page_template/docs/changelog.md

This file was deleted.

50 changes: 0 additions & 50 deletions PotreeConverter/resources/page_template/docs/documentation.md

This file was deleted.

46 changes: 0 additions & 46 deletions PotreeConverter/resources/page_template/docs/faq.md

This file was deleted.

Loading

0 comments on commit 4b4455f

Please sign in to comment.