render.cpp for step2 calculation