Skip to content

Commit

Permalink
Added multiplicative blend mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Raikiri committed Oct 21, 2024
1 parent d231801 commit 6d39911
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion LegitScript/include/LegitScriptEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ namespace ls
{
opaque,
alphablend,
additive
additive,
multiplicative
};

struct BlockBody
Expand Down
1 change: 1 addition & 0 deletions LegitScript/source/LegitScriptJsonApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace ls
case ls::BlendModes::opaque: return "opaque"; break;
case ls::BlendModes::alphablend: return "alphablend"; break;
case ls::BlendModes::additive: return "additive"; break;
case ls::BlendModes::multiplicative: return "multiplicative"; break;
}
}
json SerializeUniforms(const std::vector<ls::ShaderDesc::Uniform> uniforms)
Expand Down
2 changes: 1 addition & 1 deletion LegitScript/source/ScriptParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace ls
PreambleSection <- '[' (RendergraphSection / BlendModeSection / DeclarationSection / IncludeSection / NumthreadsSection) ']'
RendergraphSection <- 'rendergraph'
BlendModeSection <- 'blendmode' ':' BlendMode
BlendMode <- <'alphablend' | 'opaque' | 'additive'>
BlendMode <- <'alphablend' | 'opaque' | 'additive' | 'multiplicative'>
DeclarationSection <- 'declaration' ':' String
IncludeSection <- 'include' ':' StringArray
NumthreadsSection <- 'numthreads' Int3
Expand Down

0 comments on commit 6d39911

Please sign in to comment.