diff --git a/scene_capture_texture.lua b/scene_capture_texture.lua index 6d997ef..208c912 100644 --- a/scene_capture_texture.lua +++ b/scene_capture_texture.lua @@ -46,7 +46,7 @@ while not hg.ReadKeyboard():Key(hg.K_Escape) and hg.IsWindowOpen(win) do scene:Update(dt) trs = scene:GetNode('engine_master'):GetTransform() - trs:SetRot(trs:GetRot() + hg.Vec3(0, hg.Deg(15) * hg.time_to_sec_f(dt), 0)) + trs:SetRot(trs:GetRot() + hg.Vec3(0, hg.Deg(15) * hg.time_to_sec_f(dt), 0)) view_id = 0 view_id, pass_id = hg.SubmitSceneToPipeline(view_id, scene, hg.IntRect(0, 0, res_x, res_y), true, pipeline, res, frame_buffer.handle) @@ -57,8 +57,7 @@ while not hg.ReadKeyboard():Key(hg.K_Escape) and hg.IsWindowOpen(win) do val_uniforms = {hg.MakeUniformSetValue('color', hg.Vec4(1, 1, 1, 1))} tex_uniforms = {hg.MakeUniformSetTexture('s_tex', tex_color, 0)} - hg.DrawModel(view_id, plane_mdl, plane_prg, val_uniforms, tex_uniforms, - hg.TransformationMat4(hg.Vec3(0, 0, 0), hg.Vec3(math.pi / 2, 0, math.pi))) + hg.DrawModel(view_id, plane_mdl, plane_prg, val_uniforms, tex_uniforms, hg.TransformationMat4(hg.Vec3(0, 0, 0), hg.Vec3(math.pi / 2, 0, math.pi))) -- Change state to capture when user press Space and Capture is not already running if (hg.ReadKeyboard():Key(hg.K_Space) and state == "none") then