Blender  V2.93
Classes | Typedefs | Functions | Variables
node_shader_tex_sky.c File Reference
#include "../node_shader_util.h"
#include "sky_model.h"

Go to the source code of this file.

Classes

struct  SkyModelPreetham
 
struct  XYZ_to_RGB
 

Typedefs

typedef struct SkyModelPreetham SkyModelPreetham
 
typedef struct XYZ_to_RGB XYZ_to_RGB
 

Functions

static void node_shader_init_tex_sky (bNodeTree *UNUSED(ntree), bNode *node)
 
static float sky_perez_function (const float *lam, float theta, float gamma)
 
static void sky_precompute_old (SkyModelPreetham *sunsky, const float sun_angles[], float turbidity)
 
static void get_XYZ_to_RGB_for_gpu (XYZ_to_RGB *data)
 
static int node_shader_gpu_tex_sky (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
static void node_shader_update_sky (bNodeTree *UNUSED(ntree), bNode *node)
 
void register_node_type_sh_tex_sky (void)
 

Variables

static bNodeSocketTemplate sh_node_tex_sky_in []
 
static bNodeSocketTemplate sh_node_tex_sky_out []
 

Typedef Documentation

◆ SkyModelPreetham

◆ XYZ_to_RGB

typedef struct XYZ_to_RGB XYZ_to_RGB

Function Documentation

◆ get_XYZ_to_RGB_for_gpu()

static void get_XYZ_to_RGB_for_gpu ( XYZ_to_RGB data)
static

Definition at line 122 of file node_shader_tex_sky.c.

References data, IMB_colormangement_get_xyz_to_rgb(), and xyz_to_rgb().

Referenced by node_shader_gpu_tex_sky().

◆ node_shader_gpu_tex_sky()

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

◆ node_shader_init_tex_sky()

static void node_shader_init_tex_sky ( bNodeTree UNUSEDntree,
bNode node 
)
static

◆ node_shader_update_sky()

static void node_shader_update_sky ( bNodeTree UNUSEDntree,
bNode node 
)
static

◆ register_node_type_sh_tex_sky()

void register_node_type_sh_tex_sky ( void  )

◆ sky_perez_function()

static float sky_perez_function ( const float lam,
float  theta,
float  gamma 
)
static

Definition at line 68 of file node_shader_tex_sky.c.

References cosf, and expf.

Referenced by sky_precompute_old().

◆ sky_precompute_old()

static void sky_precompute_old ( SkyModelPreetham sunsky,
const float  sun_angles[],
float  turbidity 
)
static

Variable Documentation

◆ sh_node_tex_sky_in

bNodeSocketTemplate sh_node_tex_sky_in[]
static
Initial value:
= {
{SOCK_VECTOR, N_("Vector"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE, SOCK_HIDE_VALUE},
{-1, ""},
}
#define N_(msgid)
@ SOCK_HIDE_VALUE
@ SOCK_VECTOR
@ PROP_NONE
Definition: RNA_types.h:113

Definition at line 25 of file node_shader_tex_sky.c.

Referenced by register_node_type_sh_tex_sky().

◆ sh_node_tex_sky_out

bNodeSocketTemplate sh_node_tex_sky_out[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE, SOCK_NO_INTERNAL_LINK},
{-1, ""},
}
@ SOCK_NO_INTERNAL_LINK
@ SOCK_RGBA

Definition at line 30 of file node_shader_tex_sky.c.

Referenced by register_node_type_sh_tex_sky().