Template:Archived Page History/Warning model lightmaps: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Multiple materials don't work)
mNo edit summary
Line 6: Line 6:
-->}}<!--
-->}}<!--
-->{{warning|Model lightmaps generated with [[VRAD]] are compiled as RGB888, which can result in noticeable color banding when brightly lit in HDR mode.<!--
-->{{warning|Model lightmaps generated with [[VRAD]] are compiled as RGB888, which can result in noticeable color banding when brightly lit in HDR mode.<!--
     -->{{workaround|<ul><li>Define a pre-baked RGBA16f {{ent|$lightmap}} in the [[VMT]] of the [[VertexLitGeneric]] material.<li>Increase lightmap resolution (results may vary).</ul>}}<!--
     -->{{workaround|<ul><li>Define a pre-baked{{how}} RGBA16f {{ent|$lightmap}} in the [[VMT]] of the [[VertexLitGeneric]] material.<li>Increase lightmap resolution (results may vary).</ul>}}<!--
-->}}<!--
-->}}<!--
--></onlyinclude>
--></onlyinclude>

Revision as of 19:48, 30 July 2023

Shows the following warnings:

Warning.pngWarning:Models use the same UVs for lightmaps as $basetexture; as such, lightmapping on models with overlapping or tiling UVs may not appear as intended!
Warning.pngWarning:Lightmaps for models with multiple materials do not compile properly in VRAD![Clarify]
PlacementTip.pngWorkaround:Define a pre-baked $lightmap in the VMT of the VertexLitGeneric material.
Warning.pngWarning:Model lightmaps generated with VRAD are compiled as RGB888, which can result in noticeable color banding when brightly lit in HDR mode.
PlacementTip.pngWorkaround: