May I suggest to add a private method which would return 
```javascript
this.diffuseTexture != null && this.diffuseTexture.hasAlpha && this.useAlphaFromDiffuseTexture
```
since it's used twice and that makes sense to have such a function which could be called _shouldUseAlphaFromDiffuseTexture for example