mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add 'advanced' post-effect load configuration
This commit is contained in:
parent
9cc59c8848
commit
02a91e0b72
10 changed files with 49 additions and 21 deletions
|
|
@ -132,8 +132,13 @@ assetload::postfunc assetload::posteffect(
|
|||
vertexSource,
|
||||
fragmentSource
|
||||
);
|
||||
bool advanced = false;
|
||||
if (settings) {
|
||||
advanced = dynamic_cast<const PostEffectCfg*>(settings.get())->advanced;
|
||||
}
|
||||
assets->store(
|
||||
std::make_shared<PostEffect>(std::move(program), params), name
|
||||
std::make_shared<PostEffect>(advanced, std::move(program), params),
|
||||
name
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue