@@ -536,7 +536,7 @@ function createProgramFromTags(
536
536
537
537
var vsPrefix = [ "#version 300 es" ] ;
538
538
if ( opt_multiview ) {
539
- vsPrefix . push ( "#extension GL_OVR_multiview : require" ) ;
539
+ vsPrefix . push ( "#extension GL_OVR_multiview2 : require" ) ;
540
540
vsPrefix . push ( "layout(num_views = 2) in;" ) ;
541
541
542
542
var addToMain = '' ;
@@ -556,7 +556,7 @@ function createProgramFromTags(
556
556
557
557
var fsPrefix = [ "#version 300 es" ] ;
558
558
if ( opt_multiview ) {
559
- fsPrefix . push ( "#extension GL_OVR_multiview : require" ) ;
559
+ fsPrefix . push ( "#extension GL_OVR_multiview2 : require" ) ;
560
560
}
561
561
fsPrefix . push ( "out mediump vec4 my_FragColor;" ) ;
562
562
fs = fsPrefix . join ( '\n' ) + fs ;
@@ -884,7 +884,7 @@ function main() {
884
884
g_fpsTimer = new tdl . fps . FPSTimer ( ) ;
885
885
if ( isMultiviewSupportEnabled ( ) ) {
886
886
gl = tdl . webgl . setupWebGL ( canvas , { antialias : false } , undefined , 'webgl2' ) ;
887
- multiview = gl . getExtension ( 'WEBGL_multiview ' ) ;
887
+ multiview = gl . getExtension ( 'OVR_multiview2 ' ) ;
888
888
} else {
889
889
gl = tdl . webgl . setupWebGL ( canvas ) ;
890
890
}
@@ -1878,14 +1878,14 @@ function setupMultiviewFbIfNeeded() {
1878
1878
gl . texParameteri ( gl . TEXTURE_2D_ARRAY , gl . TEXTURE_MAG_FILTER , gl . NEAREST ) ;
1879
1879
gl . texParameteri ( gl . TEXTURE_2D_ARRAY , gl . TEXTURE_MIN_FILTER , gl . NEAREST ) ;
1880
1880
gl . texImage3D ( gl . TEXTURE_2D_ARRAY , 0 , gl . RGBA8 , halfWidth , canvas . height , 2 , 0 , gl . RGBA , gl . UNSIGNED_BYTE , null ) ;
1881
- multiview . framebufferTextureMultiviewWEBGL ( gl . FRAMEBUFFER , gl . COLOR_ATTACHMENT0 , g_multiviewTex , 0 , 0 , 2 ) ;
1881
+ multiview . framebufferTextureMultiviewOVR ( gl . FRAMEBUFFER , gl . COLOR_ATTACHMENT0 , g_multiviewTex , 0 , 0 , 2 ) ;
1882
1882
1883
1883
g_multiviewDepth = gl . createTexture ( ) ;
1884
1884
gl . bindTexture ( gl . TEXTURE_2D_ARRAY , g_multiviewDepth ) ;
1885
1885
gl . texParameteri ( gl . TEXTURE_2D_ARRAY , gl . TEXTURE_MAG_FILTER , gl . NEAREST ) ;
1886
1886
gl . texParameteri ( gl . TEXTURE_2D_ARRAY , gl . TEXTURE_MIN_FILTER , gl . NEAREST ) ;
1887
1887
gl . texImage3D ( gl . TEXTURE_2D_ARRAY , 0 , gl . DEPTH24_STENCIL8 , halfWidth , canvas . height , 2 , 0 , gl . DEPTH_STENCIL , gl . UNSIGNED_INT_24_8 , null ) ;
1888
- multiview . framebufferTextureMultiviewWEBGL ( gl . FRAMEBUFFER , gl . DEPTH_STENCIL_ATTACHMENT , g_multiviewDepth , 0 , 0 , 2 ) ;
1888
+ multiview . framebufferTextureMultiviewOVR ( gl . FRAMEBUFFER , gl . DEPTH_STENCIL_ATTACHMENT , g_multiviewDepth , 0 , 0 , 2 ) ;
1889
1889
1890
1890
g_multiviewViewFb = [ null , null ] ;
1891
1891
for ( var viewIndex = 0 ; viewIndex < 2 ; ++ viewIndex ) {
0 commit comments