Blender  V2.93
Functions | Variables
node_shader_volume_principled.c File Reference
#include "../node_shader_util.h"

Go to the source code of this file.

Functions

static void node_shader_init_volume_principled (bNodeTree *UNUSED(ntree), bNode *node)
 
static int node_shader_gpu_volume_principled (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_volume_principled (void)
 

Variables

static bNodeSocketTemplate sh_node_volume_principled_in []
 
static bNodeSocketTemplate sh_node_volume_principled_out []
 

Function Documentation

◆ node_shader_gpu_volume_principled()

static int node_shader_gpu_volume_principled ( GPUMaterial mat,
bNode node,
bNodeExecData UNUSEDexecdata,
GPUNodeStack in,
GPUNodeStack out 
)
static

◆ node_shader_init_volume_principled()

static void node_shader_init_volume_principled ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 45 of file node_shader_volume_principled.c.

References LISTBASE_FOREACH, node, and STREQ.

Referenced by register_node_type_sh_volume_principled().

◆ register_node_type_sh_volume_principled()

void register_node_type_sh_volume_principled ( void  )

Variable Documentation

◆ sh_node_volume_principled_in

bNodeSocketTemplate sh_node_volume_principled_in[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f},
{SOCK_STRING, N_("Color Attribute"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Density"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1000.0f},
{SOCK_STRING, N_("Density Attribute"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Anisotropy"), 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, PROP_FACTOR},
{SOCK_RGBA, N_("Absorption Color"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Emission Strength"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1000.0f},
{SOCK_RGBA, N_("Emission Color"), 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Blackbody Intensity"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR},
{SOCK_RGBA, N_("Blackbody Tint"), 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Temperature"), 1000.0f, 0.0f, 0.0f, 0.0f, 0.0f, 6500.0f},
{SOCK_STRING, N_("Temperature Attribute"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{-1, ""},
}
#define N_(msgid)
@ SOCK_FLOAT
@ SOCK_STRING
@ SOCK_RGBA
@ PROP_FACTOR
Definition: RNA_types.h:131

Definition at line 24 of file node_shader_volume_principled.c.

Referenced by register_node_type_sh_volume_principled().

◆ sh_node_volume_principled_out

bNodeSocketTemplate sh_node_volume_principled_out[]
static
Initial value:
= {
{SOCK_SHADER, N_("Volume")},
{-1, ""},
}
@ SOCK_SHADER

Definition at line 40 of file node_shader_volume_principled.c.

Referenced by register_node_type_sh_volume_principled().