greggman / twgl.js

A Tiny WebGL helper Library
http://twgljs.org
MIT License
2.61k stars 258 forks source link

AttachmentOptions definition is missing "internalFormat?: number" field #151

Closed baturinsky closed 4 years ago

baturinsky commented 4 years ago

In twgl-full.d.ts and twgl.d.ts definition of AttachmentOptions has no field "internalFormat". It makes it impossible to use it with WebGL2 formats such as RGBA16F in typescript (without passing it an already created texture).

greggman commented 4 years ago

https://github.com/greggman/twgl.js/commit/508cd8897b598d8f47b0e3e9aa3cbad7d6e31766

baturinsky commented 4 years ago

But https://github.com/greggman/twgl.js/blob/master/dist/4.x/twgl.d.ts (and twgl-full.d.ts there) STILL have no internalFormat in AttachmentOptions definition.