While working on normal-maps / lights I came across the “LightMapDiffuseMethod(..)” as one option to be used for diffusion.
Now on my post over here How to use Lightmap Richard explained the use of “LightMapMethod”. So of course I followed those instructions and it is working create. Just wondering, if I create a material like this.
var myMaterial:TextureMatrial (..);
myMaterial.addMethod(new LightMapMethod(new BitmapTexture((new myLightMap()).bitmapData), BlendMode.MULTIPLY, false));
and once like this
var myMaterial:TextureMatrial (..);
myMaterial.diffuseMethod = new LightMapDiffuseMethod(new BitmapTexture((new liDoor()).bitmapData), BlendMode.MULTIPLY, false, null);
and applied it, the outcome (from what I can tell) is the same. So besides the extra parameter at the end of LightMapDiffuseMethod(.....), what is the difference? Is there a use-case for one, or the other?
To be clear, I do not have any trouble with either, I’m just curios / learning.
Thanx
Mike