Comments (7)
Frankly, when you look at the XHR answer of a glsl file - which is gzip, it is so small that I don't see much value of just of a size reduction, if there are more clever optimization that can benefit runtime speed then it would be good...
from gltf.
Something like this, I guess: https://github.com/aras-p/glsl-optimizer
from gltf.
Yeah, that looks very interesting, thanks.
from gltf.
We are tracking glsl-optimizer in #34. It has some promise, but did not work in all cases.
I agree that minification is minor. We did see an improvement compared to just removing whitespace (~20% ?), but we didn't test gzip.
I'd leave this open as a low-priority since anything we can do reasonably to get our payload size down is a good thing.
from gltf.
I came to this issue by chance, just wanted to add that there's an online/js version of glsl-optimizier if anyone's interested to try it. http://zz85.github.io/glsl-optimizer/
from gltf.
Cool, thanks for sharing @zz85!
from gltf.
Moving to gltf-pipeline so it is useful to all exporters/converters, see CesiumGS/gltf-pipeline#1.
from gltf.
Related Issues (20)
- Is it possible to add axis convention hint in file header ? HOT 1
- Why is the official capitalization glTF instead of GLTF? HOT 3
- MSFT_texture_dds: behaviour for unreachable or incorrect dds files
- Can GLTF model structure be customized with additional properties? HOT 3
- FB_geometry_metadata: Clarify meaning of "primitiveCount"
- Define a way to provide unique identifiers for glTF data (nodes/etc) HOT 72
- `KHR_materials_volume`: clarify that the calculation of the attenuation coefficient uses a natural logarithm
- Converting SpecularGlossiness back to MetallicRoughness HOT 2
- Request for KITTYCAD vendor prefix
- Would you please consider adding makeSEA+Catapult to your list of viewing applications? HOT 1
- How to convert 3d face coordinates into gltf ? HOT 1
- Length unit clarification HOT 2
- Coordinate System and Units HOT 2
- KHR_draco_mesh_compression and triangle strips HOT 1
- how to use this project? HOT 1
- typo in pbr.frag
- Re-using materials on meshes with different attributes HOT 3
- Accessor zero-initialization: Allow default-initialization? HOT 2
- Add ENVOKE vendor prefix
- glTF2 'sparse' object has redundancy in its indices object HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gltf.