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

HUD usage #12

Open
nevahid opened this issue Apr 25, 2019 · 1 comment
Open

HUD usage #12

nevahid opened this issue Apr 25, 2019 · 1 comment

Comments

@nevahid
Copy link

nevahid commented Apr 25, 2019

hi every body... i was trying to use HUD option with beginHUD and endHUD... there was no error, but nothing was shown... this is my code:

mainCam.beginHUD(RENDERER,500,500);
mainCam.endHUD(RENDERER);

i found the below error in p5.js:
Uncaught (in promise) TypeError: Cannot read property 'mat4' of undefined
at p5.Shader._setMatrixUniforms (p5.js:81305)
at p5.Shader.bindShader (p5.js:81248)
at p5.RendererGL.drawBuffers (p5.js:79721)
at p5.RendererGL.rect (p5.js:74662)
at p5.rect (p5.js:53387)

thanks in advance
@diwi

@tymoshenko
Copy link

I had the same issue and the answer was that I was using an old lib version.
New one here: https://github.com/freshfork/p5.EasyCam

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

2 participants