-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Development: Fix bugs preventing the use of app.js
All the small fixes here are being committed at the same time to allow the use of app.js for development. Layout: Switch back to strings for TYPES ---------------------------------------- Layout TYPES need to be strings because they're used to index into a GLRenderingContext. I put a switch case in the Layout constructor to calculate the gl type size in bytes. Mesh: Add `makeIndexBufferDataForMaterials` to Mesh --------------------------------------------------- The current behavior of `makeIndexBufferData` will make an index buffer for only one material which is strange at best and difficult-to-use at worst. I've added here a method to build an index buffer given any number of materials. downloadMtlTextures: Don't fetch directory listings when filename doesn't exist ----------------------------------------------------------------- When filename is empty for texture map data, don't try downloading the root directory.
- Loading branch information
1 parent
9db1d6c
commit dc5f9ad
Showing
4 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters