graphics - How to do phong shading in POV-ray -


i using pov-ray raytracer rendering. have mesh of triangles, when render using :

 mesh {     triangle    {            < corner_1>, <corner_2>, <corner_3>    }  } 

i not getting smooth shading, there provision smooth shading in pov-ray using :

smooth_triangle {     <corner_1>, <normal_1>, <corner_2>,     <normal_2>, <corner_3>, <normal_3>     [object_modifier...] } 

but problem requires normal of corners of triangle ( uses phong shading ), how calculate normal @ corners of triangle? how have smooth shading in pov-ray?

note: triangles sharing common vertices have same normal @ vertices


Comments

Popular posts from this blog

c# - Attribute value in root node of xml Linq to XML -

ios swift - uiimage array to video disorted and flipped -

scala, transform a callback pattern to a functional style internal iterator -