Dynamic lights and blocks

Posted By: Superku

Dynamic lights and blocks - 03/05/10 01:48

I am using dynamic lights for shaders and models but I do not want them to affect the level geometry (blocks). Is this possible?
Posted By: darkinferno

Re: Dynamic lights and blocks - 03/05/10 03:47

probably have to use some shader or material, i asked for a type of light in WED that wouldnt affect blocks but as usual.. no reply
Posted By: bart_the_13th

Re: Dynamic lights and blocks - 03/05/10 06:06

@darkinferno:You never ask grin
Code:
MATERIAL* no_dlight 
{
  effect=
  "
    texture entSkin1;
    texture entSkin2;//I forgot, is it entskin2 or entskin3?
    technique no_dlight
    {
      pass p0
      {
        Texture[0] = <entSkin2>;
        Texture[1] = <entSkin1>;

        ColorArg1[0] = Texture;  // shadow map
        ColorOp[0] = SelectArg1;        

        ColorArg1[1] = Texture;  // color map
        ColorArg1[1] = Current;  // shadow map
        ColorOp[1] = Modulate2X; //Also try modulate, or modulate4x

        magfilter[1] = linear;
        minfilter[1] = linear;
        mipfilter[1] = linear;
        }
    }
  ";
};


Just apply that material to the whole block, not guaranteed to work though...
Posted By: Superku

Re: Dynamic lights and blocks - 03/05/10 13:46

Thank you both, I will try that material!
© 2023 lite-C Forums