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

Go to the source code of this file.

Functions

static int gpu_shader_brightcontrast (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_brightcontrast (void)
 

Variables

static bNodeSocketTemplate sh_node_brightcontrast_in []
 
static bNodeSocketTemplate sh_node_brightcontrast_out []
 

Function Documentation

◆ gpu_shader_brightcontrast()

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

Definition at line 36 of file node_shader_brightness.c.

References GPU_stack_link(), and node.

Referenced by register_node_type_sh_brightcontrast().

◆ register_node_type_sh_brightcontrast()

void register_node_type_sh_brightcontrast ( void  )

Variable Documentation

◆ sh_node_brightcontrast_in

bNodeSocketTemplate sh_node_brightcontrast_in[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 1.0f, 1.0f, 1.0f, 1.0f},
{SOCK_FLOAT, N_("Bright"), 0.0f, 0.0f, 0.0f, 0.0f, -100.0f, 100.0f, PROP_NONE},
{SOCK_FLOAT, N_("Contrast"), 0.0f, 0.0f, 0.0f, 0.0f, -100.0f, 100.0f, PROP_NONE},
{-1, ""},
}
#define N_(msgid)
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_NONE
Definition: RNA_types.h:113

Definition at line 24 of file node_shader_brightness.c.

Referenced by register_node_type_sh_brightcontrast().

◆ sh_node_brightcontrast_out

bNodeSocketTemplate sh_node_brightcontrast_out[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 31 of file node_shader_brightness.c.

Referenced by register_node_type_sh_brightcontrast().