167 return NODE_TEX_ENVIRONMENT;
207 return fmaxf(sun_size, 0.0005f);
305 if (dimensions == 4) {
477 ustring value_string;
479 static const int MAX_TYPE = 13;
480 static unique_ptr<Node> create(
const NodeType *
type);
481 static const NodeType *(&get_node_types())[MAX_TYPE][MAX_TYPE];
482 static bool register_on_init;
516 return NODE_CLOSURE_BSDF;
1014 bool has_surface_transparent()
override;
1341 return NODE_COMBINE_VECTOR;
1391 return NODE_SEPARATE_VECTOR;
1403 return NODE_GET_VECTOR_COMPONENT;
1598 return NODE_VECTOR_MATH;
1622 return NODE_VECTOR_ROTATE;
1637 return NODE_VECTOR_TRANSFORM;
1732 return NODE_CLOSURE_SET_NORMAL;
1739 const size_t num_inputs,
1740 const OSLNode *from =
nullptr);
1743 static void operator delete(
void *ptr)
1748 ::operator
delete(ptr);
1750 static void operator delete(
void * ,
void * )
1759 char *input_default_value();
1839 return NODE_TANGENT;
1926 return NODE_RAYCAST;
1931 void add_output_attribute_socket(ustring attribute_name,
1932 AttributeOutputType attribute_output_type,
1942 struct AttributeOutput {
1943 ustring attribute_name;
1944 AttributeOutputType attribute_output_type;
1947 vector<AttributeOutput> attribute_outputs_;
1950 unique_ptr_vector<SocketType> socket_types_;
unsigned long long int uint64_t
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
uint64_t get_feature() override
bool has_spatial_varying() override
bool has_spatial_varying() override
bool has_attribute_dependency() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
void constant_fold(const ConstantFolder &folder) override
uint64_t get_feature() override
bool is_linear_operation() override
uint64_t get_feature() override
bool has_spatial_varying() override
void constant_fold(const ConstantFolder &folder) override
void constant_fold(const ConstantFolder &folder) override
void constant_fold(const ConstantFolder &folder) override
bool equals(const ShaderNode &) override
uint64_t get_feature() override
bool has_spatial_varying() override
ClosureType get_closure_type() override
ShaderNodeType shader_node_type() const override
bool is_linear_operation() override
BsdfBaseNode(const NodeType *node_type)
BsdfNode(const NodeType *node_type)
void compile(SVMCompiler &compiler, const T &data)
void constant_fold(const ConstantFolder &folder) override
bool has_spatial_varying() override
uint64_t get_feature() override
bool has_spatial_varying() override
void constant_fold(const ConstantFolder &folder) override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
ShaderNodeType shader_node_type() const override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
bool is_linear_operation() override
ShaderNodeType shader_node_type() const override
void constant_fold(const ConstantFolder &folder) override
ConvertNode(SocketType::Type from, SocketType::Type to, bool autoconvert=false)
NodeConvert convert_type()
void compile(SVMCompiler &compiler, ShaderInput *value_in, ShaderOutput *value_out)
CurvesNode(const NodeType *node_type)
ShaderNodeType shader_node_type() const override
void constant_fold(const ConstantFolder &folder, ShaderInput *value_in)
bool is_linear_operation() override
uint64_t get_feature() override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
bool has_volume_support() override
void constant_fold(const ConstantFolder &folder) override
uint64_t get_feature() override
bool from_auto_conversion
bool has_surface_emission() override
ShaderNodeType shader_node_type() const override
ShaderNode * clone(ShaderGraph *graph) const override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_attribute_dependency() override
void update_images(const SVMCompiler &compiler) override
ImageParams image_params() const
bool equals(const ShaderNode &other) override
void constant_fold(const ConstantFolder &folder) override
bool has_spatial_varying() override
void constant_fold(const ConstantFolder &folder) override
bool has_spatial_varying() override
bool has_attribute_dependency() override
ShaderNodeType shader_node_type() const override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
void constant_fold(const ConstantFolder &folder) override
ShaderNodeType shader_node_type() const override
void simplify_settings(Scene *scene) override
ClosureType get_closure_type() override
bool has_attribute_dependency() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_attribute_dependency() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
void simplify_settings(Scene *scene) override
ClosureType get_closure_type() override
ClosureType get_closure_type() override
bool has_attribute_dependency() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_spatial_varying() override
ClosureType get_closure_type() override
bool is_linear_operation() override
ShaderNode * clone(ShaderGraph *graph) const override
virtual void update_images(const SVMCompiler &compiler)=0
bool is_texture_node_and_needs_derivatives(const SVMCompiler &compiler) override
bool equals(const ShaderNode &other) override
ImageSlotTextureNode(const NodeType *node_type)
void update_images(const SVMCompiler &compiler) override
ImageParams image_params() const
void cull_tiles(Scene *scene, ShaderGraph *graph)
ShaderNode * clone(ShaderGraph *graph) const override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_attribute_dependency() override
ShaderNodeType shader_node_type() const override
bool equals(const ShaderNode &other) override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
bool has_spatial_varying() override
bool has_spatial_varying() override
bool is_linear_operation() override
void expand(ShaderGraph *graph) override
ShaderNodeType shader_node_type() const override
void constant_fold(const ConstantFolder &folder) override
void expand(ShaderGraph *graph) override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
bool has_spatial_varying() override
bool has_attribute_dependency() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool is_linear_operation() override
uint64_t get_feature() override
bool equals(const ShaderNode &) override
bool has_volume_support() override
static OSLNode * create(ShaderGraph *graph, const size_t num_inputs, const OSLNode *from=nullptr)
bool has_surface_emission() override
bool has_spatial_varying() override
bool is_linear_operation() override
bool equals(const ShaderNode &) override
void simplify_settings(Scene *scene) override
bool is_linear_operation() override
bool equals(const ShaderNode &) override
bool has_attribute_dependency() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_attribute_dependency() override
bool has_spatial_varying() override
bool subsurface_has_positive_weight()
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_dispersion() override
bool has_attribute_dependency() override
bool has_surface_bssrdf() override
void simplify_settings(Scene *scene) override
bool has_nonzero_weight(const char *name)
bool has_surface_transparent() override
bool has_bssrdf_bump() override
bool has_surface_emission() override
uint64_t get_feature() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_attribute_dependency() override
void constant_fold(const ConstantFolder &folder) override
void constant_fold(const ConstantFolder &folder) override
void constant_fold(const ConstantFolder &folder) override
ShaderNodeType shader_node_type() const override
bool is_linear_operation() override
bool has_surface_transparent() override
uint64_t get_feature() override
RaycastNode(const RaycastNode &other)
uint64_t get_feature() override
bool has_spatial_varying() override
ShaderNodeType shader_node_type() const override
@ ATTR_OUTPUT_FLOAT_ALPHA
ClosureType get_closure_type() override
ScatterVolumeNode(const NodeType *node_type)
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
ShaderNodeType shader_node_type() const override
bool is_linear_operation() override
ShaderNodeType shader_node_type() const override
bool need_derivatives() const
ShaderNodeSpecialType special_type
virtual uint64_t get_feature()
virtual void constant_fold(const ConstantFolder &)
ShaderNode(const NodeType *type)
ClosureType get_closure_type() override
void simplify_settings(Scene *scene) override
float get_sun_average_radiance()
bool has_bssrdf_bump() override
ClosureType get_closure_type() override
bool has_surface_bssrdf() override
bool has_spatial_varying() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
ShaderNodeType shader_node_type() const override
bool has_attribute_dependency() override
bool has_spatial_varying() override
bool has_attribute_dependency() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
int compile(SVMCompiler &compiler, ShaderInput *vector_in)
SVMStackOffset compile_begin(SVMCompiler &compiler, ShaderInput *vector_in, ShaderNode *node)
Transform compute_transform()
void compile(SVMCompiler &compiler, const SVMStackOffset offset_in, const SVMStackOffset offset_out, ShaderNode *node)
void compile_end(SVMCompiler &compiler, ShaderInput *vector_in, const SVMStackOffset vector_offset)
TextureMapping tex_mapping
TextureNode(const NodeType *node_type)
bool has_surface_transparent() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_spatial_varying() override
bool has_attribute_dependency() override
bool is_linear_operation() override
void constant_fold(const ConstantFolder &folder) override
void constant_fold(const ConstantFolder &folder) override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_attribute_dependency() override
uint64_t get_feature() override
bool is_linear_operation() override
void expand(ShaderGraph *graph) override
ShaderNodeType shader_node_type() const override
void constant_fold(const ConstantFolder &folder) override
bool is_linear_operation() override
ShaderNodeType shader_node_type() const override
bool has_attribute_dependency() override
bool has_spatial_varying() override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
void attributes(Shader *shader, AttributeRequestSet *attributes) override
bool has_attribute_dependency() override
bool has_spatial_varying() override
uint64_t get_feature() override
ClosureType get_closure_type() override
bool has_volume_support() override
bool equals(const ShaderNode &) override
VolumeNode(const NodeType *node_type)
bool is_linear_operation() override
uint64_t get_feature() override
bool has_spatial_varying() override
#define KERNEL_FEATURE_NODE_PORTAL
#define KERNEL_FEATURE_NODE_BSDF
#define KERNEL_FEATURE_NODE_PRINCIPLED_HAIR
#define KERNEL_FEATURE_NODE_VORONOI_EXTRA
#define KERNEL_FEATURE_NODE_VOLUME
#define KERNEL_FEATURE_NODE_RAYTRACE
#define KERNEL_FEATURE_NODE_EMISSION
#define KERNEL_FEATURE_NODE_BUMP
#define CCL_NAMESPACE_END
float distance(float, float) RET
constexpr T clamp(T, U, U) RET
float length(VecOp< float, D >) RET
float2x2 invert(float2x2 mat)
float3x3 scale(float3x3 mat, float2 scale)
Quaternion interpolate(Quaternion a, Quaternion b, float t)
#define NODE_SOCKET_API_STRUCT_MEMBER(type_, name, member)
#define NODE_SOCKET_API_ARRAY(type_, name)
#define NODE_SOCKET_API(type_, name)
ccl_gpu_kernel_postfix ccl_global KernelWorkTile * tiles
NodeEnvironmentProjection
NodeVoronoiDistanceMetric
NodePrincipledHairParametrization
NodeVectorTransformConvertSpace
#define SHADER_NODE_NO_CLONE_CLASS(type)
@ SHADER_SPECIAL_TYPE_IMAGE_SLOT
#define SHADER_NODE_CLASS(type)
#define SHADER_NODE_BASE_CLASS(type)
float3 sun_direction(float sun_cos_theta)
bool equals(const Node &other) const
Node(const NodeType *type, ustring name=ustring())