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

Refactor Calculators to Use More StackGL #22

Open
waylonflinn opened this issue Feb 12, 2016 · 0 comments
Open

Refactor Calculators to Use More StackGL #22

waylonflinn opened this issue Feb 12, 2016 · 0 comments

Comments

@waylonflinn
Copy link
Owner

This should reduce code duplication in the Calculator classes significantly (eliminating bindUniforms and potentially bindInputTexture).

  //Bind shader
  shader.bind();

...

  //Set uniforms
  shader.uniforms.M = M_out;
  shader.uniforms.N = N_out;
  shader.uniforms.pad = pad_out;

from gl-shader

  shader.uniforms.texture = texture.bind()

from gl-texture2d

Other potentially useful classes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant