Blender Git Commit Log

Git Commits -> Revision d5efda7

Revision d5efda7 by Aaron Carlisle (master)
December 5, 2021, 17:12 (GMT)
Cleanup: Migrate all shader nodes to c++

This will be useful in the future to use the new socket builder API

Aditional changes:

- Declare variables where initialized
- Do not use relative includes

Differential Revision: https://developer.blender.org/D13465

Commit Details:

Full Hash: d5efda72f501ad95679d7ac554086a1fb18c1ac0
Parent Commit: b32f9bf
Lines Changed: +6868, -6893

71 Added Paths:

/source/blender/nodes/shader/nodes/node_shader_add_shader.cc (+56, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.cc (+79, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_attribute.cc (+98, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_background.cc (+56, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bevel.cc (+69, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_blackbody.cc (+63, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_brightness.cc (+56, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.cc (+80, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_diffuse.cc (+64, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_glass.cc (+82, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_glossy.cc (+81, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair.cc (+60, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair_principled.cc (+108, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.cc (+200, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_refraction.cc (+74, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_toon.cc (+65, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_translucent.cc (+62, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_transparent.cc (+55, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bsdf_velvet.cc (+63, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_bump.cc (+68, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_camera.cc (+57, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_common.cc (+253, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_displacement.cc (+83, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_eevee_specular.cc (+101, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_emission.cc (+56, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_fresnel.cc (+73, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_gamma.cc (+73, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_geometry.cc (+101, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_hair_info.cc (+58, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_holdout.cc (+54, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_hueSatVal.cc (+99, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_ies_light.cc (+54, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_invert.cc (+78, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_layer_weight.cc (+75, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_light_falloff.cc (+61, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_light_path.cc (+62, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_mapping.cc (+77, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_mix_shader.cc (+57, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_normal.cc (+77, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_normal_map.cc (+133, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_object_info.cc (+61, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_output_aov.cc (+71, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_output_light.cc (+42, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_output_linestyle.cc (+44, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_output_material.cc (+90, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_output_world.cc (+58, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_particle_info.cc (+75, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_rgb.cc (+51, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_script.cc (+71, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_sepcombHSV.cc (+118, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_shaderToRgb.cc (+60, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_squeeze.cc (+71, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_subsurface_scattering.cc (+97, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_tangent.cc (+86, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_tex_coord.cc (+98, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_tex_environment.cc (+151, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.cc (+82, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.cc (+221, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_uvAlongStroke.cc (+39, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_uvmap.cc (+68, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_vector_displacement.cc (+80, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_vectTransform.cc (+153, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_vertex_color.cc (+62, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_volume_absorption.cc (+56, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_volume_info.cc (+61, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_volume_principled.cc (+142, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_volume_scatter.cc (+57, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_wavelength.cc (+73, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_wireframe.cc (+67, -0) (View)
/source/blender/nodes/shader/node_shader_tree.cc (+1031, -0) (View)
/source/blender/nodes/shader/node_shader_util.hh (+116, -0) (View)

71 Deleted Paths:

/source/blender/nodes/shader/nodes/node_shader_add_shader.c (+0, -56)
/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.c (+0, -79)
/source/blender/nodes/shader/nodes/node_shader_attribute.c (+0, -97)
/source/blender/nodes/shader/nodes/node_shader_background.c (+0, -56)
/source/blender/nodes/shader/nodes/node_shader_bevel.c (+0, -69)
/source/blender/nodes/shader/nodes/node_shader_blackbody.c (+0, -63)
/source/blender/nodes/shader/nodes/node_shader_brightness.c (+0, -56)
/source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.c (+0, -80)
/source/blender/nodes/shader/nodes/node_shader_bsdf_diffuse.c (+0, -64)
/source/blender/nodes/shader/nodes/node_shader_bsdf_glass.c (+0, -82)
/source/blender/nodes/shader/nodes/node_shader_bsdf_glossy.c (+0, -81)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair.c (+0, -60)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair_principled.c (+0, -109)
/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.c (+0, -200)
/source/blender/nodes/shader/nodes/node_shader_bsdf_refraction.c (+0, -74)
/source/blender/nodes/shader/nodes/node_shader_bsdf_toon.c (+0, -65)
/source/blender/nodes/shader/nodes/node_shader_bsdf_translucent.c (+0, -62)
/source/blender/nodes/shader/nodes/node_shader_bsdf_transparent.c (+0, -55)
/source/blender/nodes/shader/nodes/node_shader_bsdf_velvet.c (+0, -63)
/source/blender/nodes/shader/nodes/node_shader_bump.c (+0, -68)
/source/blender/nodes/shader/nodes/node_shader_camera.c (+0, -57)
/source/blender/nodes/shader/nodes/node_shader_common.c (+0, -266)
/source/blender/nodes/shader/nodes/node_shader_displacement.c (+0, -83)
/source/blender/nodes/shader/nodes/node_shader_eevee_specular.c (+0, -101)
/source/blender/nodes/shader/nodes/node_shader_emission.c (+0, -56)
/source/blender/nodes/shader/nodes/node_shader_fresnel.c (+0, -73)
/source/blender/nodes/shader/nodes/node_shader_gamma.c (+0, -73)
/source/blender/nodes/shader/nodes/node_shader_geometry.c (+0, -101)
/source/blender/nodes/shader/nodes/node_shader_hair_info.c (+0, -58)
/source/blender/nodes/shader/nodes/node_shader_holdout.c (+0, -54)
/source/blender/nodes/shader/nodes/node_shader_hueSatVal.c (+0, -99)
/source/blender/nodes/shader/nodes/node_shader_ies_light.c (+0, -53)
/source/blender/nodes/shader/nodes/node_shader_invert.c (+0, -78)
/source/blender/nodes/shader/nodes/node_shader_layer_weight.c (+0, -75)
/source/blender/nodes/shader/nodes/node_shader_light_falloff.c (+0, -61)
/source/blender/nodes/shader/nodes/node_shader_light_path.c (+0, -62)
/source/blender/nodes/shader/nodes/node_shader_mapping.c (+0, -77)
/source/blender/nodes/shader/nodes/node_shader_mix_shader.c (+0, -57)
/source/blender/nodes/shader/nodes/node_shader_normal.c (+0, -77)
/source/blender/nodes/shader/nodes/node_shader_normal_map.c (+0, -132)
/source/blender/nodes/shader/nodes/node_shader_object_info.c (+0, -61)
/source/blender/nodes/shader/nodes/node_shader_output_aov.c (+0, -70)
/source/blender/nodes/shader/nodes/node_shader_output_light.c (+0, -42)
/source/blender/nodes/shader/nodes/node_shader_output_linestyle.c (+0, -44)
/source/blender/nodes/shader/nodes/node_shader_output_material.c (+0, -90)
/source/blender/nodes/shader/nodes/node_shader_output_world.c (+0, -58)
/source/blender/nodes/shader/nodes/node_shader_particle_info.c (+0, -75)
/source/blender/nodes/shader/nodes/node_shader_rgb.c (+0, -51)
/source/blender/nodes/shader/nodes/node_shader_script.c (+0, -70)
/source/blender/nodes/shader/nodes/node_shader_sepcombHSV.c (+0, -118)
/source/blender/nodes/shader/nodes/node_shader_shaderToRgb.c (+0, -60)
/source/blender/nodes/shader/nodes/node_shader_squeeze.c (+0, -71)
/source/blender/nodes/shader/nodes/node_shader_subsurface_scattering.c (+0, -97)
/source/blender/nodes/shader/nodes/node_shader_tangent.c (+0, -85)
/source/blender/nodes/shader/nodes/node_shader_tex_coord.c (+0, -97)
/source/blender/nodes/shader/nodes/node_shader_tex_environment.c (+0, -150)
/source/blender/nodes/shader/nodes/node_shader_tex_pointdensity.c (+0, -82)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.c (+0, -221)
/source/blender/nodes/shader/nodes/node_shader_uvAlongStroke.c (+0, -39)
/source/blender/nodes/shader/nodes/node_shader_uvmap.c (+0, -67)
/source/blender/nodes/shader/nodes/node_shader_vector_displacement.c (+0, -80)
/source/blender/nodes/shader/nodes/node_shader_vectTransform.c (+0, -153)
/source/blender/nodes/shader/nodes/node_shader_vertex_color.c (+0, -62)
/source/blender/nodes/shader/nodes/node_shader_volume_absorption.c (+0, -56)
/source/blender/nodes/shader/nodes/node_shader_volume_info.c (+0, -61)
/source/blender/nodes/shader/nodes/node_shader_volume_principled.c (+0, -142)
/source/blender/nodes/shader/nodes/node_shader_volume_scatter.c (+0, -57)
/source/blender/nodes/shader/nodes/node_shader_wavelength.c (+0, -73)
/source/blender/nodes/shader/nodes/node_shader_wireframe.c (+0, -67)
/source/blender/nodes/shader/node_shader_tree.c (+0, -1041)
/source/blender/nodes/shader/node_shader_util.h (+0, -126)

24 Modified Paths:

/source/blender/nodes/CMakeLists.txt (+71, -71) (Diff)
/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_clamp.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_curves.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_map_range.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_math.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mixRgb.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombRGB.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombXYZ.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_brick.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_checker.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_gradient.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_image.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_magic.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_musgrave.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_noise.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_wave.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_white_noise.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_valToRgb.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_value.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_math.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_rotate.cc (+1, -1) (Diff)
/source/blender/nodes/shader/node_shader_util.cc (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021