1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

dont clear empty FBOs, fix doc example

This commit is contained in:
Cody Glassman 2024-01-18 07:15:35 -08:00
parent 68c280a493
commit 3cdb9496c4
2 changed files with 6 additions and 1 deletions

View File

@ -662,6 +662,11 @@ namespace MWRender
for (const auto& name : pass->getRenderTargets())
{
if (name.empty())
{
continue;
}
auto& renderTarget = technique->getRenderTargetsMap()[name];
subPass.mStateSet->setTextureAttribute(subTexUnit, renderTarget.mTarget);
subPass.mStateSet->addUniform(new osg::Uniform(name.c_str(), subTexUnit));

View File

@ -561,7 +561,7 @@ color buffer will accumulate.
source_format = rgb;
internal_format = rgb16f;
source_type = float;
clear_color = vec4(1,0,0,1);
clear_color = vec4(0,0,0,1);
}
fragment red(target=RT_Red,blend=(add, src_color, one), rt1=RT_Red) {