Table of Contents
Scripts > BakeLightOntoTexture
Script contents// check lightmap hvar hLM hTX set hLM <GetMap "LM"> set hTX <GetMap "TX"> assert <map.GetWidth hLM> "Light map is not initialised!" assert <map.GetWidth hTX> "Texture map is not initialised!" // store a backup L3DTio_Backup.ExtBackupMap "TX" "Bake LM onto TX" 0 "view.ShowMap \"TX\"" // apply the overlay ZeoImage.StretchDrape hTX hLM 80 // show the texture view.ShowMap "TX" CommentsNone. Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|