forked from V-Sekai/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from sourcelocation/expose-lightmap-baking
Expose runtime baking functionality in LightmapGI
- Loading branch information
Showing
4 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
def can_build(env, platform): | ||
return env.editor_build and platform not in ["android", "ios"] | ||
return (env.editor_build and platform not in ["android", "ios"]) or env["module_lightmapper_rd_enabled"] | ||
|
||
|
||
def configure(env): | ||
pass | ||
from SCons.Script import BoolVariable, Variables, Help | ||
|
||
envvars = Variables() | ||
envvars.Add( | ||
BoolVariable( | ||
"lightmapper_rd", | ||
"Enable Lightmapper functionality in export template builds (increases binary size)", | ||
False, | ||
) | ||
) | ||
envvars.Update(env) | ||
Help(envvars.GenerateHelpText(env)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
def can_build(env, platform): | ||
return env.editor_build and platform not in ["android", "ios"] | ||
return env.editor_build and platform not in ["android", "ios"] or env["module_xatlas_unwrap_enabled"] | ||
|
||
|
||
def configure(env): | ||
pass | ||
from SCons.Script import BoolVariable, Variables, Help | ||
|
||
envvars = Variables() | ||
envvars.Add( | ||
BoolVariable( | ||
"xatlas_unwrap", | ||
"Enable xatlas unwrapping functionality in export template builds (increases binary size)", | ||
False, | ||
) | ||
) | ||
envvars.Update(env) | ||
Help(envvars.GenerateHelpText(env)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters