mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 01:07:43 +00:00
Lightmap rendering
This commit is contained in:
@@ -80,6 +80,14 @@ void InitGeomBlenderContext(HECL::BlenderConnection::PyOutStream& os,
|
||||
" face.smooth = True\n"
|
||||
"\n"
|
||||
" return face, ret_mesh\n"
|
||||
"\n"
|
||||
"def expand_lightmap_triangle(uva, uvb, uvc):\n"
|
||||
" result = ([uva[0],uva[1]], [uvb[0],uvb[1]], [uvc[0],uvc[1]])\n"
|
||||
" if uva == uvb:\n"
|
||||
" result[1][0] += 0.005\n"
|
||||
" if uva == uvc:\n"
|
||||
" result[2][1] -= 0.005\n"
|
||||
" return result\n"
|
||||
"\n";
|
||||
|
||||
/* Link master shader library */
|
||||
|
||||
Reference in New Issue
Block a user