A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/javascript/latest/sample-code/scene-blendmode/ below:

Blend modes in 3D | Sample Code | ArcGIS Maps SDK for JavaScript 4.33

This sample shows how blend modes can be used in a 3D SceneView.

Blend modes define how layers should blend together to create an interesting effect in a layer, or even to produce what seems like a new layer. Unlike using transparency, which can result in a washed-out top layer, blend modes create a variety of vibrant and intriguing results by blending a layer with the layers below it.

This sample uses the luminosity blend mode to blend together a hillshade layer with the underlying basemap. Without the blend mode, the hillshade layer would totally cover the basemap which would not be visible:

The blendMode is a property which can be set directly on the layer:

Use dark colors for code blocks Copy

1
2
3
4
const hillshade = new TileLayer({
  url: "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",
  blendMode: "luminosity",
});

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4