mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +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
|
|
@ -10,10 +10,11 @@ PostEffect::Param::Param(Type type, Value defValue)
|
|||
}
|
||||
|
||||
PostEffect::PostEffect(
|
||||
bool advanced,
|
||||
std::shared_ptr<Shader> shader,
|
||||
std::unordered_map<std::string, Param> params
|
||||
)
|
||||
: shader(std::move(shader)), params(std::move(params)) {
|
||||
: advanced(advanced), shader(std::move(shader)), params(std::move(params)) {
|
||||
}
|
||||
|
||||
Shader& PostEffect::use() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue