API / geotoolkit3d / picking / pickingrenderer / AbstractShaderPickingMaterial / AbstractShaderPickingMaterial
pickingrenderer.AbstractShaderPickingMaterial.AbstractShaderPickingMaterial
The parent class for picking materials that uses a Shader based picking mechanism.
The shader chunks and uniforms contained in this class should be used to compute/write picking information in pixels.
See
RendererPicking For details about picking-renderer.
ShaderMaterial↳
AbstractShaderPickingMaterial↳↳
DefaultPointCloudPickingMaterial↳↳
DefaultPointSetPickingMaterial↳↳
DefaultReservoirPickingMaterial
Constructors
Constructors
• new AbstractShaderPickingMaterial(options?)
| Name | Type |
|---|---|
Optional options | ShaderMaterialParameters |
ShaderMaterial.constructor
Methods
▸ getOptions(): OptionsOut
Get abstract shader picking material options, for internal use only.
options
▸ setOptions(options): AbstractShaderPickingMaterial
Set picking options, note that this setOptions expects all mandatory parameters to be set
| Name | Type | Description |
|---|---|---|
options | Options | The picking options |
this
▸ Static computePlotNormInvMatrix(plot): Matrix4
Computes a matrix to transform coordinates contained in [0...1] to a plot model space.
This is used to un-normalize coordinates returned by the GPU.
| Name | Type | Description |
|---|---|---|
plot | Plot | The Plot to compute the inverse normalization matrix for |
Matrix4
The matrix to un-normalize coordinates
▸ 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>
| Name | Type | Description |
|---|---|---|
plot | Plot | The plot to compute the normalization matrix for |
Matrix4
The matrix to normalize coordinates