Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case NDT_MESH:
- {
- if(f.mesh_ptr) {
- v3f pos = intToFloat(p, BS);
- u16 l = getInteriorLight(n, 1, nodedef);
- video::SColor c = MapBlock_LightColor(255, l, f.light_source);
- u16 mc = f.mesh_ptr->getMeshBufferCount();
- for(u16 j = 0; j < mc; j++) {
- scene::IMeshBuffer *buf = (scene::IMeshBuffer *)f.mesh_ptr->getMeshBuffer(j);
- u32 vc = buf->getVertexCount();
- u32 ic = buf->getIndexCount();
- collector.append(f.tiles[j], (video::S3DVertex *)buf->getVertices(), vc,
- buf->getIndices(), ic, pos, f.visual_scale, c);
- }
- }
- break;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement