Skip to content

Commit

Permalink
bugfix scene_capture_texture.lua added pass_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Angar0Os committed Nov 19, 2024
1 parent f946b54 commit ba3544f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene_capture_texture.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ while not hg.ReadKeyboard():Key(hg.K_Escape) and hg.IsWindowOpen(win) do
trs:SetRot(trs:GetRot() + hg.Vec3(0, hg.Deg(15) * hg.time_to_sec_f(dt), 0))

view_id = 0
view_id = hg.SubmitSceneToPipeline(view_id, scene, hg.IntRect(0, 0, res_x, res_y), true, pipeline, res, frame_buffer.handle)
view_id, pass_id = hg.SubmitSceneToPipeline(view_id, scene, hg.IntRect(0, 0, res_x, res_y), true, pipeline, res, frame_buffer.handle)

-- Draw a plabe using the texture the scene was rendered to
hg.SetViewPerspective(view_id, 0, 0, res_x, res_y, hg.TranslationMat4(hg.Vec3(0, 0, -1.8)))
Expand Down

0 comments on commit ba3544f

Please sign in to comment.