bloodrun-editor/makefiles/Props/CommonVariables.props
serge_shubin 89b825ece5 Add L2 spherical harmonics light grid to q3map2
Implements a new SH light grid that runs alongside the legacy Q3 light grid,
storing 9 RGB L2 spherical harmonic coefficients per grid point for accurate
directional lighting of dynamic objects from all angles.

BSP format: v47 with 19-lump header (160 bytes) when -sh is used, v46 with
17-lump header (144 bytes) otherwise. SH data stored in LUMP_LIGHTGRID_SH
(index 18) with a header containing grid bounds/size/mins followed by the
coefficient array. Stock Q3 engines read v46 lumps unchanged.

New CLI flags: -sh (enable), -gridscalesh (density multiplier, default 2x),
-gridsh (explicit cell size). SH grid receives bounced light with -bouncegrid.

Also adds libjpeg-turbo as a proper build dependency with its own vcxproj,
fixing the previous external engine path requirement.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 13:28:28 +08:00

23 lines
1.3 KiB
XML
Executable file

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="UserMacros">
<EditorRoot>$([System.IO.Path]::GetFullPath('$(SolutionDir)..'))\</EditorRoot>
<ProjectRoot>$([System.IO.Path]::GetFullPath('$(SolutionDir)..\..'))\</ProjectRoot>
<ProjectOutputDir Condition="'$(ProjectOutputDir)'==''">$(EditorRoot)build\$(Platform)\$(Configuration)\output\</ProjectOutputDir>
<ProjectIntermediateDir Condition="'$(ProjectIntermediateDir)'==''">$(EditorRoot)build\$(Platform)\$(Configuration)\intermediate\</ProjectIntermediateDir>
<LibraryOutputDir Condition="'$(LibraryOutputDir)'==''">$(EditorRoot)build\$(Platform)\$(Configuration)\lib\</LibraryOutputDir>
<Q3Map2SrcDir>$(EditorRoot)q3map2\</Q3Map2SrcDir>
<AssimpSrcDir>$(EditorRoot)assimp\</AssimpSrcDir>
<LibXml2SrcDir>$(EditorRoot)libxml2\</LibXml2SrcDir>
<LibPngSrcDir>$(EditorRoot)libpng\</LibPngSrcDir>
<ZlibSrcDir>$(EditorRoot)zlib\</ZlibSrcDir>
<LibJpegTurboSrcDir>$(EditorRoot)libjpeg-turbo\</LibJpegTurboSrcDir>
<EngineSrcDir>$(ProjectRoot)engine\</EngineSrcDir>
<BuildType>NOT_SET</BuildType>
<BuildType Condition="'$(Configuration)'=='Debug'">Debug</BuildType>
<BuildType Condition="'$(Configuration)'=='Release'">Release</BuildType>
</PropertyGroup>
</Project>