Jump to content

Two-sided materials rendered incorrect in deferred mode


photo

Recommended Posts

Topic says it all. I tested it with mesh_base, mesh_leaf_base and mesh_stem_base materials. When two-sided flag is set, in deferred light mode back side surfaces are lightened too (missing light_direction multiplier somewhere?). Duplicating the geometry with normals flipped fixes the issue.

 

It is very easy to reproduce:

- open sample scene with one world light (i.e. library_vegetation);

- put here palm tree model from Tropics demo (i.e. palm_coconut_green1.mesh);

- assign two-sided material to palm1_leaves_* surfaces;

- place camera below the tree and turn on 'Force deferred lighing' for the sun;

 

I hope it is just a minor bug that could be fixed for upcoming update.

post-26-0-02883600-1329386969_thumb.png

post-26-0-54341100-1329387007_thumb.png

Link to comment
×
×
  • Create New...