File tree 2 files changed +0
-37
lines changed
2 files changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -1325,31 +1325,6 @@ function shader(p5, fn){
1325
1325
return this ;
1326
1326
}
1327
1327
1328
- /* NONE OF THIS IS FAST OR EFFICIENT BUT BEAR WITH ME
1329
- *
1330
- * these shader "type" query methods are used by various
1331
- * facilities of the renderer to determine if changing
1332
- * the shader type for the required action (for example,
1333
- * do we need to load the default lighting shader if the
1334
- * current shader cannot handle lighting?)
1335
- *
1336
- **/
1337
-
1338
- isNormalShader ( ) {
1339
- return this . attributes . aNormal !== undefined ;
1340
- }
1341
-
1342
- isTextureShader ( ) {
1343
- return this . samplers . length > 0 ;
1344
- }
1345
-
1346
- isColorShader ( ) {
1347
- return (
1348
- this . attributes . aVertexColor !== undefined ||
1349
- this . uniforms . uMaterialColor !== undefined
1350
- ) ;
1351
- }
1352
-
1353
1328
/**
1354
1329
* @chainable
1355
1330
* @private
Original file line number Diff line number Diff line change @@ -256,18 +256,6 @@ suite('p5.Shader', function() {
256
256
assert . isTrue ( curShader === null ) ;
257
257
} ) ;
258
258
259
- test ( 'isNormalShader returns true if there is a normal attribute' , function ( ) {
260
- var s = myp5 . _renderer . _getNormalShader ( ) ;
261
- myp5 . shader ( s ) ;
262
- assert . isTrue ( s . isNormalShader ( ) ) ;
263
- } ) ;
264
-
265
- test ( 'isNormalShader returns false if there is no normal attribute' , function ( ) {
266
- var s = myp5 . _renderer . _getPointShader ( ) ;
267
- myp5 . shader ( s ) ;
268
- assert . isFalse ( s . isNormalShader ( ) ) ;
269
- } ) ;
270
-
271
259
suite ( 'Hooks' , function ( ) {
272
260
let myShader ;
273
261
You can’t perform that action at this time.
0 commit comments