Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_volume_info.cc
| Show All 19 Lines | static int node_shader_gpu_volume_info(GPUMaterial *mat, | ||||
| GPUNodeStack *out) | GPUNodeStack *out) | ||||
| { | { | ||||
| if (out[0].hasoutput) { | if (out[0].hasoutput) { | ||||
| out[0].link = GPU_attribute(mat, CD_AUTO_FROM_NAME, "color"); | out[0].link = GPU_attribute(mat, CD_AUTO_FROM_NAME, "color"); | ||||
| GPU_link(mat, "node_attribute_color", out[0].link, &out[0].link); | GPU_link(mat, "node_attribute_color", out[0].link, &out[0].link); | ||||
| } | } | ||||
| if (out[1].hasoutput) { | if (out[1].hasoutput) { | ||||
| out[1].link = GPU_attribute(mat, CD_AUTO_FROM_NAME, "density"); | out[1].link = GPU_attribute(mat, CD_AUTO_FROM_NAME, "density"); | ||||
| GPU_link(mat, "node_attribute_density", out[1].link, &out[1].link); | |||||
| } | } | ||||
| if (out[2].hasoutput) { | if (out[2].hasoutput) { | ||||
| out[2].link = GPU_attribute(mat, CD_AUTO_FROM_NAME, "flame"); | out[2].link = GPU_attribute(mat, CD_AUTO_FROM_NAME, "flame"); | ||||
| GPU_link(mat, "node_attribute_flame", out[2].link, &out[2].link); | |||||
| } | } | ||||
| if (out[3].hasoutput) { | if (out[3].hasoutput) { | ||||
| out[3].link = GPU_attribute(mat, CD_AUTO_FROM_NAME, "temperature"); | out[3].link = GPU_attribute(mat, CD_AUTO_FROM_NAME, "temperature"); | ||||
| GPU_link(mat, "node_attribute_temperature", out[3].link, &out[3].link); | GPU_link(mat, "node_attribute_temperature", out[3].link, &out[3].link); | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| Show All 15 Lines | |||||