@@ -281,10 +281,10 @@ function _WebGL_doBindAttribute(gl, attribute, mesh, attributes) {
281
281
* @return {Object } buffer.buffers - will be used to buffer attributes
282
282
*/
283
283
function _WebGL_doBindSetup ( gl , mesh ) {
284
- if ( mesh . a . indexSize > 0 ) {
284
+ if ( mesh . a . __$ indexSize > 0 ) {
285
285
_WebGL_log ( 'Created index buffer' ) ;
286
286
var indexBuffer = gl . createBuffer ( ) ;
287
- var indices = _WebGL_makeIndexedBuffer ( mesh . c , mesh . a . indexSize ) ;
287
+ var indices = _WebGL_makeIndexedBuffer ( mesh . c , mesh . a . __$ indexSize) ;
288
288
gl . bindBuffer ( gl . ELEMENT_ARRAY_BUFFER , indexBuffer ) ;
289
289
gl . bufferData ( gl . ELEMENT_ARRAY_BUFFER , indices , gl . STATIC_DRAW ) ;
290
290
return {
@@ -294,7 +294,7 @@ function _WebGL_doBindSetup(gl, mesh) {
294
294
} ;
295
295
} else {
296
296
return {
297
- numIndices : mesh . a . elemSize * _WebGL_listLength ( mesh . b ) ,
297
+ numIndices : mesh . a . __$ elemSize * _WebGL_listLength ( mesh . b ) ,
298
298
indexBuffer : null ,
299
299
buffers : { }
300
300
} ;
@@ -383,12 +383,12 @@ var _WebGL_drawGL = F2(function (model, domNode) {
383
383
384
384
program = {
385
385
glProgram : glProgram ,
386
- attributes : Object . assign ( { } , entity . b . attributes , entity . c . attributes ) ,
386
+ attributes : Object . assign ( { } , entity . __vert . attributes , entity . __frag . attributes ) ,
387
387
uniformSetters : _WebGL_createUniformSetters (
388
388
gl ,
389
389
model ,
390
390
glProgram ,
391
- Object . assign ( { } , entity . b . uniforms , entity . c . uniforms )
391
+ Object . assign ( { } , entity . __vert . uniforms , entity . __frag . uniforms )
392
392
)
393
393
} ;
394
394
@@ -440,9 +440,9 @@ var _WebGL_drawGL = F2(function (model, domNode) {
440
440
441
441
if ( buffer . indexBuffer ) {
442
442
gl . bindBuffer ( gl . ELEMENT_ARRAY_BUFFER , buffer . indexBuffer ) ;
443
- gl . drawElements ( entity . d . a . mode , buffer . numIndices , gl . UNSIGNED_SHORT , 0 ) ;
443
+ gl . drawElements ( entity . __mesh . a . __$ mode, buffer . numIndices , gl . UNSIGNED_SHORT , 0 ) ;
444
444
} else {
445
- gl . drawArrays ( entity . d . a . mode , 0 , buffer . numIndices ) ;
445
+ gl . drawArrays ( entity . __mesh . a . __$ mode, 0 , buffer . numIndices ) ;
446
446
}
447
447
448
448
_WebGL_listEach ( __WI_disableSetting ( model . __cache ) , entity . __settings ) ;
0 commit comments