Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_value.c
| Show All 15 Lines | |||||
| * The Original Code is Copyright (C) 2005 Blender Foundation. | * The Original Code is Copyright (C) 2005 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup shdnodes | * \ingroup shdnodes | ||||
| */ | */ | ||||
| #include "node_shader_util.h" | #include "node_shader_utils.h" | ||||
| /* **************** VALUE ******************** */ | /* **************** VALUE ******************** */ | ||||
| static bNodeSocketTemplate sh_node_value_out[] = { | static bNodeSocketTemplate sh_node_value_out[] = { | ||||
| {SOCK_FLOAT, 0, N_("Value"), 0.5f, 0, 0, 0, -FLT_MAX, FLT_MAX, PROP_NONE}, | {SOCK_FLOAT, 0, N_("Value"), 0.5f, 0, 0, 0, -FLT_MAX, FLT_MAX, PROP_NONE}, | ||||
| {-1, 0, ""}, | {-1, 0, ""}, | ||||
| }; | }; | ||||
| static int gpu_shader_value(GPUMaterial *mat, | static int gpu_shader_value(GPUMaterial *mat, | ||||
| Show All 19 Lines | |||||