Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_image.cc
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | static int node_shader_gpu_tex_image(GPUMaterial *mat, | ||||
| ImageUser *iuser = &tex_original->iuser; | ImageUser *iuser = &tex_original->iuser; | ||||
| if (!ima) { | if (!ima) { | ||||
| return GPU_stack_link(mat, node, "node_tex_image_empty", in, out); | return GPU_stack_link(mat, node, "node_tex_image_empty", in, out); | ||||
| } | } | ||||
| GPUNodeLink **texco = &in[0].link; | GPUNodeLink **texco = &in[0].link; | ||||
| if (!*texco) { | if (!*texco) { | ||||
| *texco = GPU_attribute(mat, CD_MTFACE, ""); | *texco = GPU_attribute(mat, CD_AUTO_FROM_NAME, ""); | ||||
| node_shader_gpu_bump_tex_coord(mat, node, texco); | node_shader_gpu_bump_tex_coord(mat, node, texco); | ||||
| } | } | ||||
| node_shader_gpu_tex_mapping(mat, node, in, out); | node_shader_gpu_tex_mapping(mat, node, in, out); | ||||
| eGPUSamplerState sampler_state = GPU_SAMPLER_DEFAULT; | eGPUSamplerState sampler_state = GPU_SAMPLER_DEFAULT; | ||||
| switch (tex->extension) { | switch (tex->extension) { | ||||
| ▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines | |||||