Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_preview.c
| Show First 20 Lines • Show All 795 Lines • ▼ Show 20 Lines | for (int x = 0; x < width; x++) { | ||||
| /* Evaluate texture at tex_coord .*/ | /* Evaluate texture at tex_coord .*/ | ||||
| TexResult texres = {0}; | TexResult texres = {0}; | ||||
| BKE_texture_get_value_ex(sce, tex, tex_coord, &texres, img_pool, color_manage); | BKE_texture_get_value_ex(sce, tex, tex_coord, &texres, img_pool, color_manage); | ||||
| rect_float[0] = texres.tr; | rect_float[0] = texres.tr; | ||||
| rect_float[1] = texres.tg; | rect_float[1] = texres.tg; | ||||
| rect_float[2] = texres.tb; | rect_float[2] = texres.tb; | ||||
| rect_float[3] = 1.0f; | rect_float[3] = texres.talpha ? texres.ta : 1.0f; | ||||
| rect_float += 4; | rect_float += 4; | ||||
| } | } | ||||
| /* Check if we should cancel texture preview. */ | /* Check if we should cancel texture preview. */ | ||||
| if (shader_preview_break(sp)) { | if (shader_preview_break(sp)) { | ||||
| break; | break; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 681 Lines • Show Last 20 Lines | |||||