Blender V5.0
node_texture_bricks.cc File Reference
#include "BKE_material.hh"
#include "BLI_math_vector.h"
#include "DNA_material_types.h"
#include "node_texture_util.hh"
#include <cmath>

Go to the source code of this file.

Functions

static void init (bNodeTree *, bNode *node)
static float noise (int n)
static void colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
static void exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
void register_node_type_tex_bricks ()

Variables

static blender::bke::bNodeSocketTemplate inputs []
static blender::bke::bNodeSocketTemplate outputs []

Function Documentation

◆ colorfn()

void colorfn ( float * out,
TexParams * p,
bNode * node,
bNodeStack ** in,
short thread )
static

◆ exec()

void exec ( void * data,
int ,
bNode * node,
bNodeExecData * execdata,
bNodeStack ** in,
bNodeStack ** out )
static

Definition at line 96 of file node_texture_bricks.cc.

References colorfn(), data, in, out, and tex_output().

◆ init()

void init ( bNodeTree * ,
bNode * node )
static

Definition at line 31 of file node_texture_bricks.cc.

References bNode::custom3, and bNode::custom4.

Referenced by blender::bke::add_custom_data_layer_from_attribute_init(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::bke::attribute_init_to_data(), blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), BKE_mesh_legacy_convert_uvs_to_generic(), BMO_op_init(), blender::array_utils::booleans_mix_calc(), bounds_min_max_with_transform(), btSymMatrix< T >::btSymMatrix(), blender::bke::build_mesh_positions(), blender::ed::vse::ScopeHistogram::calc_from_ibuf(), blender::bke::calculate_type_counts(), blender::bke::compute_local_mesh_groups(), blender::array_utils::contains(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::array_utils::count_booleans(), blender::gpu::MTLContext::debug_capture_begin(), deform_verts(), ED_area_type_hud_ensure(), ed_curves_select_pick(), ed_grease_pencil_select_pick(), blender::gpu::MTLContext::ensure_depth_stencil_state(), blender::ed::curves::find_closest_curve(), blender::ed::curves::find_closest_curve_to_screen_co(), blender::ed::curves::find_closest_point_to_screen_co(), blender::ed::pointcloud::find_closest_point_to_screen_co(), blender::ed::sculpt_paint::find_curves_brush_position(), blender::bke::pbvh::Tree::from_grids(), blender::bke::pbvh::Tree::from_mesh(), blender::bke::gather_attributes(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::gpu::MTLContextComputeUtils::get_buffer_clear_pso(), GHOST_ContextMTL::GHOST_ContextMTL(), ghost_fatal_error_dialog(), heapsimple_down(), blender::gpu::MTLTexture::init_internal(), blender::ed::sculpt_paint::load_tex(), blender::ed::sculpt_paint::load_tex_cursor(), blender::bounds::min_max(), blender::bounds::min_max(), blender::bounds::min_max_with_radii(), blender::gpu::MTLFrameBuffer::MTLFrameBuffer(), pointcloud_select_pick(), pygpu_buffer__tp_new(), register_node_type_tex_bricks(), register_node_type_tex_image(), register_node_type_tex_output(), blender::gpu::MTLBackend::render_begin(), blender::gpu::MTLBackend::render_step(), blender::ed::sculpt_paint::replace_attribute(), btSymMatrix< T >::resize(), blender::gpu::MTLContext::sampler_state_cache_init(), blender::ed::transform::snap_object_data_editmesh_get(), blender::seq::tonemap_calc_input_luminance(), blender::bke::try_add_shared_field_attribute(), blender::ed::greasepencil::weight_sample_invoke(), WM_tooltip_immediate_init(), WM_tooltip_timer_init(), and WM_tooltip_timer_init_ex().

◆ noise()

◆ register_node_type_tex_bricks()

Variable Documentation

◆ inputs

Initial value:
= {
{SOCK_RGBA, N_("Bricks 1"), 0.596f, 0.282f, 0.0f, 1.0f},
{SOCK_RGBA, N_("Bricks 2"), 0.632f, 0.504f, 0.05f, 1.0f},
{SOCK_RGBA, N_("Mortar"), 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Thickness"), 0.02f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_UNSIGNED},
{SOCK_FLOAT, N_("Bias"), 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, PROP_NONE},
{SOCK_FLOAT, N_("Brick Width"), 0.5f, 0.0f, 0.0f, 0.0f, 0.001f, 99.0f, PROP_UNSIGNED},
{SOCK_FLOAT, N_("Row Height"), 0.25f, 0.0f, 0.0f, 0.0f, 0.001f, 99.0f, PROP_UNSIGNED},
{-1, ""},
}
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_NONE
Definition RNA_types.hh:233
@ PROP_UNSIGNED
Definition RNA_types.hh:249
#define N_(msgid)

Definition at line 16 of file node_texture_bricks.cc.

◆ outputs

Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 26 of file node_texture_bricks.cc.