mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge branch 'alpha40_premul' of https://github.com/Azaezel/Torque3D into Preview4_0
This commit is contained in:
commit
27ee09e491
6 changed files with 37 additions and 13 deletions
|
|
@ -120,6 +120,10 @@ LangElement* ShaderFeatureHLSL::assignColor( LangElement *elem,
|
|||
assign = new GenOp( "@ *= @", color, elem );
|
||||
break;
|
||||
|
||||
case Material::PreMul:
|
||||
assign = new GenOp("@.rgb = @.rgb + (@.rgb*(1.0-@.a))", color, elem, color, elem);
|
||||
break;
|
||||
|
||||
case Material::AddAlpha:
|
||||
assign = new GenOp( "@ += @ * @.a", color, elem, elem );
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue