screenshotTaken
Definition
-- @/lua/ge/screenshot.lua:169
-- this is called when the screenshot is taken on the GPU, but not written to disc yet. see screenshotSaved
-- we revet some graphic settings in here only to return to a normal render state
local function screenshotTaken()
if M.screenshotHighest then
log('I','screenshot', "Screenshot done, resetting render parameters")
TorqueScriptLua.setVar("$pref::TS::detailAdjust", M.sc_detailAdjustSaved)
TorqueScriptLua.setVar("$pref::Terrain::lodScale", M.sc_lodScaleSaved)
setGroundCoverScale(M.sc_GroundCoverScaleSaved)
local sunsky = scenetree.findObject("sunsky")
if sunsky then
sunsky.texSize = M.sc_sunskyTexSizeSaved
sunsky.shadowDistance = M.sc_sunskyShadowDistanceSaved
end
end
end
Callers