Skip to content

API / geotoolkit3d / picking / pickingrenderer / AbstractShaderPickingMaterial / AbstractShaderPickingMaterial

Class: AbstractShaderPickingMaterial

pickingrenderer.AbstractShaderPickingMaterial.AbstractShaderPickingMaterial

The parent class for picking materials that uses a Shader based picking mechanism.<br> The shader chunks and uniforms contained in this class should be used to compute/write picking information in pixels.<br>

See

RendererPicking For details about picking-renderer.

Hierarchy

Table of contents

Constructors
  • [new AbstractShaderPickingMaterial(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.picking.pickingrenderer.abstractshaderpickingmaterial.abstractshaderpickingmaterial.md#new abstractshaderpickingmaterial(options))
Methods

Contents

Constructors

new AbstractShaderPickingMaterial(options)

• new AbstractShaderPickingMaterial(options?)

Parameters

Name Type
Optional optionsShaderMaterialParameters

Overrides

ShaderMaterial.constructor

Methods

getOptions

▸ getOptions(): OptionsOut

Get abstract shader picking material options, for internal use only.

Returns

OptionsOut

options


setOptions

▸ setOptions(options): AbstractShaderPickingMaterial

Set picking options, note that this setOptions expects all mandatory parameters to be set

Parameters

Name Type Description
optionsOptionsThe picking options

Returns

AbstractShaderPickingMaterial

this


computePlotNormInvMatrix

▸ Static computePlotNormInvMatrix(plot): Matrix4

Computes a matrix to transform coordinates contained in [0...1] to a plot model space.<br> This is used to un-normalize coordinates returned by the GPU.<br>

Parameters

Name Type Description
plotPlotThe Plot to compute the inverse normalization matrix for

Returns

Matrix4

The matrix to un-normalize coordinates


computePlotNormMatrix

▸ Static computePlotNormMatrix(plot): Matrix4

Computes a matrix to transform coordinates contained in the plot model space to ]0...1[.<br> This is used to normalize coordinates during picking so that the GPU will only handle normalized coordinates.<br>

Parameters

Name Type Description
plotPlotThe plot to compute the normalization matrix for

Returns

Matrix4

The matrix to normalize coordinates