Skip to content

Commit

Permalink
Project linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Angar0Os committed Nov 19, 2024
1 parent 67bd0bd commit 30adda6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scene_capture_texture.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 30adda6

Please sign in to comment.