The provided GillWebglService generates WebGLProgram objects based on a WebGLRenderingContext and source code for vertex and fragment shaders. It may be worth caching these, but a review of how a WebGLProgram is used throughout the project is necessary to determine if reusing WebGLProgram objects could cause issues.
The provided
GillWebglService
generatesWebGLProgram
objects based on aWebGLRenderingContext
and source code for vertex and fragment shaders. It may be worth caching these, but a review of how aWebGLProgram
is used throughout the project is necessary to determine if reusingWebGLProgram
objects could cause issues.