Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/envmap.c
| Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | static Render *envmap_render_copy(Render *re, EnvMap *env) | ||||
| BLI_freelistN(&envre->r.layers); | BLI_freelistN(&envre->r.layers); | ||||
| BLI_freelistN(&envre->r.views); | BLI_freelistN(&envre->r.views); | ||||
| envre->r.filtertype = 0; | envre->r.filtertype = 0; | ||||
| envre->r.tilex = envre->r.xsch / 2; | envre->r.tilex = envre->r.xsch / 2; | ||||
| envre->r.tiley = envre->r.ysch / 2; | envre->r.tiley = envre->r.ysch / 2; | ||||
| envre->r.size = 100; | envre->r.size = 100; | ||||
| envre->r.yasp = envre->r.xasp = 1; | envre->r.yasp = envre->r.xasp = 1; | ||||
| BLI_strncpy(envre->engine_name, re->engine_name, sizeof(envre->engine_name)); | |||||
| RE_InitState(envre, NULL, &envre->r, NULL, cuberes, cuberes, NULL); | RE_InitState(envre, NULL, &envre->r, NULL, cuberes, cuberes, NULL); | ||||
| envre->main = re->main; | envre->main = re->main; | ||||
| envre->scene = re->scene; /* unsure about this... */ | envre->scene = re->scene; /* unsure about this... */ | ||||
| envre->scene_color_manage = re->scene_color_manage; | envre->scene_color_manage = re->scene_color_manage; | ||||
| envre->lay = re->lay; | envre->lay = re->lay; | ||||
| /* view stuff in env render */ | /* view stuff in env render */ | ||||
| viewscale = (env->type == ENV_PLANE) ? env->viewscale : 1.0f; | viewscale = (env->type == ENV_PLANE) ? env->viewscale : 1.0f; | ||||
| ▲ Show 20 Lines • Show All 658 Lines • Show Last 20 Lines | |||||