Skip to content

Setting shader module uniforms from a layer #5462

Discussion options

You must be logged in to vote

setModuleParameters is called automatically before each redraw with the layer's props. The easiest way to update uniforms is to implement your logic in the shader module's getUniforms callback. You can find several examples in the @deck.gl/extensions source, e.g. https://github.com/visgl/deck.gl/blob/master/modules/extensions/src/data-filter/shader-module.js#L66

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alexandruandrei91
Comment options

@Pessimistress
Comment options

@alexandruandrei91
Comment options

@Pessimistress
Comment options

@alexandruandrei91
Comment options

Answer selected by alexandruandrei91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants