Skip to content

Commit

Permalink
Merge pull request #5 from yuripourre-forks/improves-preview
Browse files Browse the repository at this point in the history
Update preview model to rotate in Y axis
  • Loading branch information
JamesTKhan authored Apr 12, 2022
2 parents b73f0c3 + 89db164 commit c22dbab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class ImportModelDialog : BaseDialog("Import Mesh"), Disposable {

init {

cam.position.set(0f, 5f, 0f)
cam.position.set(0f, 5f, 5f)
cam.lookAt(0f, 0f, 0f)
cam.near = 0.1f
cam.far = 100f
Expand All @@ -133,7 +133,7 @@ class ImportModelDialog : BaseDialog("Import Mesh"), Disposable {
renderWidget!!.setRenderer { camera ->
if (previewInstance != null) {
Gdx.gl.glClear(GL20.GL_DEPTH_BUFFER_BIT)
previewInstance!!.transform.rotate(0f, 0f, 1f, -1f)
previewInstance!!.transform.rotate(0f, 1f, 0f, -1f)
modelBatch?.begin(camera)
modelBatch?.render(previewInstance!!, env)
modelBatch?.end()
Expand Down

0 comments on commit c22dbab

Please sign in to comment.