|
@@ -268,6 +268,7 @@ class WebGLBackend extends Backend {
|
|
|
|
|
|
|
|
this.disjoint = this.extensions.get( 'EXT_disjoint_timer_query_webgl2' );
|
|
this.disjoint = this.extensions.get( 'EXT_disjoint_timer_query_webgl2' );
|
|
|
this.parallel = this.extensions.get( 'KHR_parallel_shader_compile' );
|
|
this.parallel = this.extensions.get( 'KHR_parallel_shader_compile' );
|
|
|
|
|
+ this.drawBuffersIndexedExt = this.extensions.get( 'OES_draw_buffers_indexed' );
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -957,6 +958,12 @@ class WebGLBackend extends Backend {
|
|
|
|
|
|
|
|
state.setMaterial( material, frontFaceCW, hardwareClippingPlanes );
|
|
state.setMaterial( material, frontFaceCW, hardwareClippingPlanes );
|
|
|
|
|
|
|
|
|
|
+ if ( context.textures !== null && context.textures.length > 1 ) {
|
|
|
|
|
+
|
|
|
|
|
+ state.setMRTBlending( context.textures );
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
state.useProgram( programGPU );
|
|
state.useProgram( programGPU );
|
|
|
|
|
|
|
|
// vertex state
|
|
// vertex state
|