Blender V5.0
node_shader_eevee_specular.cc File Reference
#include "node_shader_util.hh"
#include "BLI_math_base.h"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::nodes
namespace  blender::nodes::node_shader_eevee_specular_cc

Macros

#define socket_not_zero(sock)

Functions

static void blender::nodes::node_shader_eevee_specular_cc::node_declare (NodeDeclarationBuilder &b)
static int blender::nodes::node_shader_eevee_specular_cc::node_shader_gpu_eevee_specular (GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_eevee_specular ()

Macro Definition Documentation

◆ socket_not_zero

#define socket_not_zero ( sock)
Value:
(in[sock].link || (clamp_f(in[sock].vec[0], 0.0f, 1.0f) > 1e-5f))
MINLINE float clamp_f(float value, float min, float max)
#define in

Definition at line 42 of file node_shader_eevee_specular.cc.

Referenced by blender::nodes::node_shader_eevee_specular_cc::node_shader_gpu_eevee_specular().

Function Documentation

◆ register_node_type_sh_eevee_specular()