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

Go to the source code of this file.

Macros

#define socket_not_zero(sock)   (in[sock].link || (clamp_f(in[sock].vec[0], 0.0f, 1.0f) > 1e-5f))
 
#define socket_not_one(sock)    (in[sock].link || (clamp_f(in[sock].vec[0], 0.0f, 1.0f) < 1.0f - 1e-5f))
 

Functions

static void node_shader_init_principled (bNodeTree *UNUSED(ntree), bNode *node)
 
static int node_shader_gpu_bsdf_principled (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
static void node_shader_update_principled (bNodeTree *UNUSED(ntree), bNode *node)
 
void register_node_type_sh_bsdf_principled (void)
 

Variables

static bNodeSocketTemplate sh_node_bsdf_principled_in []
 
static bNodeSocketTemplate sh_node_bsdf_principled_out []
 

Macro Definition Documentation

◆ socket_not_one

#define socket_not_one (   sock)     (in[sock].link || (clamp_f(in[sock].vec[0], 0.0f, 1.0f) < 1.0f - 1e-5f))

Definition at line 81 of file node_shader_bsdf_principled.c.

◆ socket_not_zero

#define socket_not_zero (   sock)    (in[sock].link || (clamp_f(in[sock].vec[0], 0.0f, 1.0f) > 1e-5f))

Definition at line 80 of file node_shader_bsdf_principled.c.

Function Documentation

◆ node_shader_gpu_bsdf_principled()

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

◆ node_shader_init_principled()

static void node_shader_init_principled ( bNodeTree UNUSEDntree,
bNode node 
)
static

◆ node_shader_update_principled()

static void node_shader_update_principled ( bNodeTree UNUSEDntree,
bNode node 
)
static

◆ register_node_type_sh_bsdf_principled()

void register_node_type_sh_bsdf_principled ( void  )

Variable Documentation

◆ sh_node_bsdf_principled_in

bNodeSocketTemplate sh_node_bsdf_principled_in[]
static

Definition at line 24 of file node_shader_bsdf_principled.c.

Referenced by register_node_type_sh_bsdf_principled().

◆ sh_node_bsdf_principled_out

bNodeSocketTemplate sh_node_bsdf_principled_out[]
static
Initial value:
= {
{SOCK_SHADER, N_("BSDF")},
{-1, ""},
}
#define N_(msgid)
@ SOCK_SHADER

Definition at line 69 of file node_shader_bsdf_principled.c.

Referenced by register_node_type_sh_bsdf_principled().