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

Go to the source code of this file.

Functions

static void node_shader_init_anisotropic (bNodeTree *UNUSED(ntree), bNode *node)
 
static int node_shader_gpu_bsdf_anisotropic (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_bsdf_anisotropic (void)
 

Variables

static bNodeSocketTemplate sh_node_bsdf_anisotropic_in []
 
static bNodeSocketTemplate sh_node_bsdf_anisotropic_out []
 

Function Documentation

◆ node_shader_gpu_bsdf_anisotropic()

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

◆ node_shader_init_anisotropic()

static void node_shader_init_anisotropic ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 39 of file node_shader_bsdf_anisotropic.c.

References node, and SHD_GLOSSY_GGX.

Referenced by register_node_type_sh_bsdf_anisotropic().

◆ register_node_type_sh_bsdf_anisotropic()

void register_node_type_sh_bsdf_anisotropic ( void  )

Variable Documentation

◆ sh_node_bsdf_anisotropic_in

bNodeSocketTemplate sh_node_bsdf_anisotropic_in[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Roughness"), 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR},
{SOCK_FLOAT, N_("Anisotropy"), 0.5f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f},
{SOCK_FLOAT, N_("Rotation"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR},
{SOCK_VECTOR, N_("Normal"), 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f, PROP_NONE, SOCK_HIDE_VALUE},
{SOCK_VECTOR, N_("Tangent"), 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f, PROP_NONE, SOCK_HIDE_VALUE},
{-1, ""},
}
#define N_(msgid)
@ SOCK_HIDE_VALUE
@ SOCK_VECTOR
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_NONE
Definition: RNA_types.h:113
@ PROP_FACTOR
Definition: RNA_types.h:131

Definition at line 24 of file node_shader_bsdf_anisotropic.c.

Referenced by register_node_type_sh_bsdf_anisotropic().

◆ sh_node_bsdf_anisotropic_out

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

Definition at line 34 of file node_shader_bsdf_anisotropic.c.

Referenced by register_node_type_sh_bsdf_anisotropic().