Hello,
I am creating a floor using Plane primitive and have a texture and
normal to use on the floor (sized: 512x 1024). I added light (Pointed
light) to the scene. I want the texture to be of scale 0.25 and repeat
itself along X and Z axes. I can get it to repeat itself along with
normal (thus totally 16 texture repetitions). However the problem is
that the rendered floor displays as if there was a light on each
texture repetition. I see the floor as if there were 16 lights placed
across the floor on each repetition. I added only one light to the
scene and want only one light to show its effect on all repetitions of
texture.
I use the following code to create material (where mesh is the floor
plane):
var floorPBMaterial:DiffusePBMaterial = new
DiffusePBMaterial(material.bitmap, normal.bitmap, mesh, {scaleX:0.25,
scaleY:0.25, repeat:true, gloss: 1, specular: 1, smooth:true});
Can someone tell me how can I achieve what I do and/or what am I doing
wrong in this approach? I am stuck at this. Please help.