URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Hack Community
  HTML https://roshacks.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Codes
       *****************************************************
       #Post#: 263--------------------------------------------------
       [C++] Colored Chams w/ Glow 
   DIR By: GreenXpqser
       Date: April 21, 2018, 2:26 pm
       ---------------------------------------------------------
       main.cpp:
       [CODE]
       //USE 1.0f for 255 and 0.0f for 0 | because this uses float not
       0-255 values
       void setColor(LPDIRECT3DDEVICE9 pDevice, float r, float g, float
       b, float a, float gr, float gg, float gb, float ga)
       {
       float colorValues[4] = {r, g, b, a};
       float glowValues[4] = {gr, gg, gb, ga};
       
       pDevice->SetPixelShaderConstantF(1, colorValues, 1);
       pDevice->SetPixelShaderConstantF(3, glowValues, 1);
       }
       [/CODE]
       use example:
       [CODE]
       setColor(pDevice, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f,
       1.0f) //GREEN WITH GREEN GLOW
       [/CODE]
       *****************************************************
       Page 1 of 1