4 ms·
That's a pretty neat hack, but I can't think of a worse language for shader programming than javascript :-) Dynamic typing and closures are useful in some domai
by overgard 11y ago
That's a pretty neat hack, but I can't think of a worse language for shader programming than javascript :-) Dynamic typing and closures are useful in some domains... but I wouldn't want to run that sort of logic per-pixel on a display with 14 million pixels. Plus declaring the types ahead of time is really important. (highp vs. lowp, type sizes, etc.)
- albinofrenchy 11y agoSince this drops directly into GLSL, it can't/doesn't support dynamic types or closures -- types are inferred into their GLSL equivalents. I do agree that being able to control precision is important, and as of yet I'm not sure the best way to implement that.