Skip to content

Commit

Permalink
fixed depth shader
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmtech committed Jun 8, 2020
1 parent 9d967d5 commit e3f4561
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions demos/switching-geodata/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function onSwitchView() {
surfaces: {
'melown-viewfinder-world': [
'bmng08-world',
'bing-world'
"sentinel2-cloudless-eox"
]
},
freeLayers: {}
Expand All @@ -58,7 +58,7 @@ function onSwitchView() {
surfaces: {
'melown-viewfinder-world': [
'bmng08-world',
'bing-world'
"sentinel2-cloudless-eox"
]
},
freeLayers: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vts-browser-js",
"version": "2.23.0",
"version": "2.23.1",
"description": "JavaScript WebGL 3D maps rendering engine",
"main": "src/browser/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ string getCoreVersion()
*/

function getCoreVersion(full) {
return (full ? 'Core: ' : '') + '2.23.0';
return (full ? 'Core: ' : '') + '2.23.1';
}


Expand Down
4 changes: 2 additions & 2 deletions src/core/renderer/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ RendererInterface.prototype.drawMesh = function(options) {
uvAttr = null;
uv2Attr = null;
texture = null;
shader = renderer.progDepthTile;
shader = renderer.progDepthTile[0];
break;

case 'shaded':
Expand All @@ -223,7 +223,7 @@ RendererInterface.prototype.drawMesh = function(options) {
}

uv2Attr = (shader == 'textured') ? null : 'aNormal';
shader = (shader == 'textured') ? renderer.progTile : ((shader == 'shaded') ? renderer.progShadedTile : renderer.progTShadedTile);
shader = (shader == 'textured') ? renderer.progTile[0] : ((shader == 'shaded') ? renderer.progShadedTile : renderer.progTShadedTile);
break;
}
}
Expand Down

0 comments on commit e3f4561

Please sign in to comment.