vtkScalarBarActor in WebAssembly

@ken-martin

I think the issue is because TextureBuffers are not supported in OpenGL ES.

Here is the VTK code for vtkTextureObject starting at line 1126. There is an #ifdef checking for ES on line 898:

// Description:
// Create a texture buffer basically a 1D texture that can be
// very large for passing data into the fragment shader
bool vtkTextureObject::CreateTextureBuffer(
unsigned int numValues, int numComps, int dataType, vtkOpenGLBufferObject* bo)
{
assert(this->Context);
vtkErrorMacro(“TextureBuffers not supported in OpenGL ES”);
// TODO: implement 1D and Texture buffers using 2D textures
return false;
}

#endif // not ES 2.0 or 3.0

I have no idea how to implement the TODO as mentioned in the above code. Any idea when this will be implemented or a workaround?

Thanks!