pex-context
pex-context copied to clipboard
Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
Changes: - [x] convert require to import and module.exports to exports - [x] docs: convert example to esm - [x] docs: fix examples - [x] docs: aggregate instancing/batching/shadows example -...
Can't make any rg.* node work with `pixelFormat: ctx.PixelFormat.RGBA32F`. I get empty texture. `ctx.PixelFormat.RGBA16F` works fine. Tried both Linear and Nearest filtering. Not needed (i can change older r.g. node...
Bumps [jpeg-js](https://github.com/eugeneware/jpeg-js) from 0.4.3 to 0.4.4. Release notes Sourced from jpeg-js's releases. v0.4.4 v0.4.4 (2022-06-07) feat: add comment tag encoding (#87) (13e1ffa), closes #87 fix: validate sampling factors (#106) (9ccd35f),...
As per https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D Should we warn in pex-context or rely on browser to fail? Is creates issue here https://github.com/pex-gl/pex-renderer/blob/v4/loaders/glTF.js#L1234
According to [MDN WebGL_best_practices](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/WebGL_best_practices#understand_extension_availability), `ANGLE_instanced_arrays`, `OES_standard_derivatives`, `OES_element_index_uint` and `OES_vertex_array_object` are universally supported in WebGL 1. So we could remove the checks for their existence and just polyfill directly. Related #114.
Caused by `const NAMESPACE = "\x1b[31mpex-context\x1b[39m";` Chrome  Safari  Firefox 
Used here https://github.com/pex-gl/pex-context/blob/master/examples/shadows.js#L283
Is available in WebGL 2 Example usage renderbufferStorageMultisample + blitframebuffer: https://stackoverflow.com/a/55976760/1527470
To make this transition manageable i propose following steps - [x] update this repo to ESM - [x] port VAO (#85) from [85-vao-temp](https://github.com/pex-gl/pex-context/tree/85-vao-temp) branch - [ ] decide on UBO...