Blender  V3.3
Macros | Functions
stdcycles.h File Reference
#include "stdosl.h"

Go to the source code of this file.

Macros

#define BUILTIN   [[int builtin = 1]]
 
#define BUILTIN_DERIV   [[ int builtin = 1, int deriv = 1 ]]
 

Functions

closure color diffuse_ramp (normal N, color colors[8]) BUILTIN
 
closure color phong_ramp (normal N, float exponent, color colors[8]) BUILTIN
 
closure color diffuse_toon (normal N, float size, float smooth) BUILTIN
 
closure color glossy_toon (normal N, float size, float smooth) BUILTIN
 
closure color microfacet_ggx (normal N, float ag) BUILTIN
 
closure color microfacet_ggx_aniso (normal N, vector T, float ax, float ay) BUILTIN
 
closure color microfacet_ggx_refraction (normal N, float ag, float eta) BUILTIN
 
closure color microfacet_multi_ggx (normal N, float ag, color C) BUILTIN
 
closure color microfacet_multi_ggx_aniso (normal N, vector T, float ax, float ay, color C) BUILTIN
 
closure color microfacet_multi_ggx_glass (normal N, float ag, float eta, color C) BUILTIN
 
closure color microfacet_ggx_fresnel (normal N, float ag, float eta, color C, color Cspec0) BUILTIN
 
closure color microfacet_ggx_aniso_fresnel (normal N, vector T, float ax, float ay, float eta, color C, color Cspec0) BUILTIN
 
closure color microfacet_multi_ggx_fresnel (normal N, float ag, float eta, color C, color Cspec0) BUILTIN
 
closure color microfacet_multi_ggx_aniso_fresnel (normal N, vector T, float ax, float ay, float eta, color C, color Cspec0) BUILTIN
 
closure color microfacet_multi_ggx_glass_fresnel (normal N, float ag, float eta, color C, color Cspec0) BUILTIN
 
closure color microfacet_beckmann (normal N, float ab) BUILTIN
 
closure color microfacet_beckmann_aniso (normal N, vector T, float ax, float ay) BUILTIN
 
closure color microfacet_beckmann_refraction (normal N, float ab, float eta) BUILTIN
 
closure color ashikhmin_shirley (normal N, vector T, float ax, float ay) BUILTIN
 
closure color ashikhmin_velvet (normal N, float sigma) BUILTIN
 
closure color ambient_occlusion () BUILTIN
 
closure color principled_diffuse (normal N, float roughness) BUILTIN
 
closure color principled_sheen (normal N) BUILTIN
 
closure color principled_clearcoat (normal N, float clearcoat, float clearcoat_roughness) BUILTIN
 
closure color bssrdf (string method, normal N, vector radius, color albedo) BUILTIN
 
closure color hair_reflection (normal N, float roughnessu, float roughnessv, vector T, float offset) BUILTIN
 
closure color hair_transmission (normal N, float roughnessu, float roughnessv, vector T, float offset) BUILTIN
 
closure color principled_hair (normal N, color sigma, float roughnessu, float roughnessv, float coat, float alpha, float eta) BUILTIN
 
closure color henyey_greenstein (float g) BUILTIN
 
closure color absorption () BUILTIN
 
normal ensure_valid_reflection (normal Ng, vector I, normal N)
 

Macro Definition Documentation

◆ BUILTIN

#define BUILTIN   [[int builtin = 1]]

Definition at line 16 of file stdcycles.h.

◆ BUILTIN_DERIV

#define BUILTIN_DERIV   [[ int builtin = 1, int deriv = 1 ]]

Definition at line 17 of file stdcycles.h.

Function Documentation

◆ absorption()

closure color absorption ( )

◆ ambient_occlusion()

closure color ambient_occlusion ( )

◆ ashikhmin_shirley()

closure color ashikhmin_shirley ( normal  N,
vector  T,
float  ax,
float  ay 
)

◆ ashikhmin_velvet()

closure color ashikhmin_velvet ( normal  N,
float  sigma 
)

◆ bssrdf()

closure color bssrdf ( string  method,
normal  N,
vector  radius,
color  albedo 
)

◆ diffuse_ramp()

closure color diffuse_ramp ( normal  N,
color  colors[8] 
)

◆ diffuse_toon()

closure color diffuse_toon ( normal  N,
float  size,
float  smooth 
)

◆ ensure_valid_reflection()

normal ensure_valid_reflection ( normal  Ng,
vector  I,
normal  N 
)

◆ glossy_toon()

closure color glossy_toon ( normal  N,
float  size,
float  smooth 
)

◆ hair_reflection()

closure color hair_reflection ( normal  N,
float  roughnessu,
float  roughnessv,
vector  T,
float  offset 
)

◆ hair_transmission()

closure color hair_transmission ( normal  N,
float  roughnessu,
float  roughnessv,
vector  T,
float  offset 
)

◆ henyey_greenstein()

closure color henyey_greenstein ( float  g)

◆ microfacet_beckmann()

closure color microfacet_beckmann ( normal  N,
float  ab 
)

◆ microfacet_beckmann_aniso()

closure color microfacet_beckmann_aniso ( normal  N,
vector  T,
float  ax,
float  ay 
)

◆ microfacet_beckmann_refraction()

closure color microfacet_beckmann_refraction ( normal  N,
float  ab,
float  eta 
)

◆ microfacet_ggx()

closure color microfacet_ggx ( normal  N,
float  ag 
)

◆ microfacet_ggx_aniso()

closure color microfacet_ggx_aniso ( normal  N,
vector  T,
float  ax,
float  ay 
)

◆ microfacet_ggx_aniso_fresnel()

closure color microfacet_ggx_aniso_fresnel ( normal  N,
vector  T,
float  ax,
float  ay,
float  eta,
color  C,
color  Cspec0 
)

◆ microfacet_ggx_fresnel()

closure color microfacet_ggx_fresnel ( normal  N,
float  ag,
float  eta,
color  C,
color  Cspec0 
)

◆ microfacet_ggx_refraction()

closure color microfacet_ggx_refraction ( normal  N,
float  ag,
float  eta 
)

◆ microfacet_multi_ggx()

closure color microfacet_multi_ggx ( normal  N,
float  ag,
color  C 
)

◆ microfacet_multi_ggx_aniso()

closure color microfacet_multi_ggx_aniso ( normal  N,
vector  T,
float  ax,
float  ay,
color  C 
)

◆ microfacet_multi_ggx_aniso_fresnel()

closure color microfacet_multi_ggx_aniso_fresnel ( normal  N,
vector  T,
float  ax,
float  ay,
float  eta,
color  C,
color  Cspec0 
)

◆ microfacet_multi_ggx_fresnel()

closure color microfacet_multi_ggx_fresnel ( normal  N,
float  ag,
float  eta,
color  C,
color  Cspec0 
)

◆ microfacet_multi_ggx_glass()

closure color microfacet_multi_ggx_glass ( normal  N,
float  ag,
float  eta,
color  C 
)

◆ microfacet_multi_ggx_glass_fresnel()

closure color microfacet_multi_ggx_glass_fresnel ( normal  N,
float  ag,
float  eta,
color  C,
color  Cspec0 
)

◆ phong_ramp()

closure color phong_ramp ( normal  N,
float  exponent,
color  colors[8] 
)

◆ principled_clearcoat()

closure color principled_clearcoat ( normal  N,
float  clearcoat,
float  clearcoat_roughness 
)

◆ principled_diffuse()

closure color principled_diffuse ( normal  N,
float  roughness 
)

◆ principled_hair()

closure color principled_hair ( normal  N,
color  sigma,
float  roughnessu,
float  roughnessv,
float  coat,
float  alpha,
float  eta 
)

Referenced by add_node().

◆ principled_sheen()

closure color principled_sheen ( normal  N)