Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify texture format #364

Open
wyhinton opened this issue Jan 7, 2022 · 0 comments
Open

Specify texture format #364

wyhinton opened this issue Jan 7, 2022 · 0 comments
Labels

Comments

@wyhinton
Copy link

wyhinton commented Jan 7, 2022

Is there anyway to specify that image format of a texture?

In normal webgl we can create a luminance texture like this:

gl.texImage2D(
  gl.TEXTURE_2D,
  0, // level
  gl.LUMINANCE, // internal format
  numPoints, // width
  1, // height
  0, // border
  gl.LUMINANCE, // format
  gl.UNSIGNED_BYTE, // type
  null
);

But the only options I see for texture uniforms is interpolation and wrap:

type TextureOptions = {
  interpolation: Interpolation,
  wrap: [WrapMode, WrapMode] | WrapMode,
};

Is there somewhere else to specify this?

@gre gre added the feature label May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants