Custom shader and batchTable

Hi,

I’m trying to create a custom shader by copying the one I found with ( PolylineVS.glsl , PolylineDashMaterial.glsl ) in cesium\engine\Source\Shaders

But I got errors :
RuntimeError: Vertex shader failed to compile. Compile log: ERROR: 0:116: ‘batchTable_getWidthAndShow’ : no matching overloaded function found

I wonder why it’s not working ?

In the folder cesium\engine\Source\Shaders
There is the file “PolylineCommon.glsl” how do you include it on your custom shader ?

with something like ?

#extension GL_ARB_shading_language_include : require

Hi @Mickael,

batchTable_getWidthAndShow is a uniform specific to polylines and not available in all situations.

Can I ask about your use case? We may be able to recommend a solution.