bgfx::setTransform not moving object #3429
Replies: 1 comment 2 replies
-
bgfx::setTransform(transformationMatrix);
bgfx::touch(0); // <<---- Move this above bgfx::setTransform call!
bgfx::setVertexBuffer(0, renderableComponent.vertexBufferHandle);
bgfx::setIndexBuffer(renderableComponent.indexBufferHandle);
bgfx::setState(BGFX_STATE_DEFAULT);
bgfx::submit(0, renderableComponent.shaderProgram); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bkaradzic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Currently, I am rendering this rectangle
I am trying to translate the rectangle down the Y axis when I press down on my keyboard, but it seems like bgfx::setTransform() isn't doing anything. To test, I temporarily changed the code to modify the view matrix based on key down and the camera does look down. Not sure if I'm missing something
cpp code
vertex shader
Beta Was this translation helpful? Give feedback.
All reactions