DXGL r145 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r144‎ | r145 | r146 >
Date:21:48, 6 May 2012
Author:admin
Status:new
Tags:
Comment:
Add inverted color arguments
Modified paths:
  • /ddraw/shadergen.cpp (modified) (history)

Diff [purge]

Index: ddraw/shadergen.cpp
@@ -568,6 +568,8 @@
569569 arg1 = blendargs[5]+blendargs[8];
570570 break;
571571 }
 572+ if(args[0] & D3DTA_COMPLEMENT)
 573+ arg1 = "(1.0 - " + arg1 + ")";
572574 args[1] = (texstate[i].shaderid>>11)&63;
573575 switch(args[1]&7) //arg2
574576 {
@@ -595,6 +597,8 @@
596598 arg2 = blendargs[5]+blendargs[8];
597599 break;
598600 }
 601+ if(args[1] & D3DTA_COMPLEMENT)
 602+ arg2 = "(1.0 - " + arg2 + ")";
599603 if(!texfail) switch(texstate[i].shaderid & 31)
600604 {
601605 case D3DTOP_DISABLE: