-
Hi, I'm using a textlayer where I'm overriding the _TextBackgroundLayer fragment shader, in order to have rounded corners on the text background. The example code I used can be found in the following codepen which works fine on versions 8.x, but breaks on v9 After updating to v9, the visualization breaks (the background won't render at all) and i'm getting the following error Could you provide an updated example on how to achieve rounded corners on the TextLayer background using v9? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
All v9 shaders have been updated to use glsl es 300, so You can set |
Beta Was this translation helpful? Give feedback.
Looks like you have multiple output declarations from your fragment shader.
Since you are just adding to an existing shader I don't think you have to (re)declare
out vec4 fragColor
that would be the default fragment color declaration most luma.gl shaders.