Rendering bothsides with lights?

Software: Away3D 4.x

Jalava, Moderator
Posted: 10 February 2012 01:30 AM   Total Posts: 20

I’m working with dev branch here, with new lights that were added.

I just noticed that even if you turn bothSides = true for colorMaterial, it still doesn’t render both sides of mesh when lights are attached to it.

Any way to workaround this issue?

If not, i have to work without real-time lighting for few things.

   

Avatar
theMightyAtom, Sr. Member
Posted: 10 February 2012 08:00 AM   Total Posts: 669   [ # 1 ]

Such has been the case ever since the Broomstick beta.

I assume it’s because the normals are part of the lighting shader, and they of course are facing away for the mesh, and are rendered black, or your ambient colour.

The only work around I’ve found i using the geometry in 2 meshes, one with normals reversed.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X