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:
parent
68c280a493
commit
3cdb9496c4
@ -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));
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user