Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_volume_principled.c
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | GPU_link(mat, | ||||
| "node_attribute_volume_density", | "node_attribute_volume_density", | ||||
| GPU_builtin(GPU_VOLUME_DENSITY), | GPU_builtin(GPU_VOLUME_DENSITY), | ||||
| outcol, | outcol, | ||||
| outvec, | outvec, | ||||
| outf); | outf); | ||||
| } | } | ||||
| else if (strcmp(name, "color") == 0) { | else if (strcmp(name, "color") == 0) { | ||||
| GPU_link( | GPU_link( | ||||
| mat, "node_attribute_volume_color", GPU_builtin(GPU_VOLUME_DENSITY), outcol, outvec, outf); | mat, "node_attribute_volume_color", GPU_builtin(GPU_VOLUME_COLOR), outcol, outvec, outf); | ||||
| } | } | ||||
| else if (strcmp(name, "flame") == 0) { | else if (strcmp(name, "flame") == 0) { | ||||
| GPU_link( | GPU_link( | ||||
| mat, "node_attribute_volume_flame", GPU_builtin(GPU_VOLUME_FLAME), outcol, outvec, outf); | mat, "node_attribute_volume_flame", GPU_builtin(GPU_VOLUME_FLAME), outcol, outvec, outf); | ||||
| } | } | ||||
| else if (strcmp(name, "temperature") == 0) { | else if (strcmp(name, "temperature") == 0) { | ||||
| GPU_link(mat, | GPU_link(mat, | ||||
| "node_attribute_volume_temperature", | "node_attribute_volume_temperature", | ||||
| ▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines | |||||