init method

dynamic init(
  1. dynamic capabilities
)

Implementation

init(capabilities) {
  if (capabilities.isWebGL2) {
    getExtension('EXT_color_buffer_float');
  } else {
    getExtension('WEBGL_depth_texture');
    getExtension('OES_texture_float');
    getExtension('OES_texture_half_float');
    getExtension('OES_texture_half_float_linear');
    getExtension('OES_standard_derivatives');
    getExtension('OES_element_index_uint');
    getExtension('OES_vertex_array_object');
    getExtension('ANGLE_instanced_arrays');
  }

  getExtension('OES_texture_float_linear');
  getExtension('EXT_color_buffer_half_float');
}