Blender V5.3
gpu_shader_material_tex_image.bsl.hh File Reference

Go to the source code of this file.

Functions

void point_texco_remap_square (float3 vin, float3 &vout)
void point_texco_clamp (float3 vin, sampler2D ima, float3 &vout)
void point_map_to_sphere (float3 vin, float3 &vout)
void point_map_to_tube (float3 vin, float3 &vout)
void node_tex_image_linear (float3 co, sampler2D ima, KernelGlobals &kg, float4 &color, float &alpha)
void node_tex_image_cubic (float3 co, sampler2D ima, KernelGlobals &, float4 &color, float &alpha)
void tex_box_sample_linear (float3 texco, float3 N, sampler2D ima, KernelGlobals &, float4 &color1, float4 &color2, float4 &color3)
void tex_box_sample_cubic (float3 texco, float3 N, sampler2D ima, KernelGlobals &kg, float4 &color1, float4 &color2, float4 &color3)
void tex_box_blend (float3 N, float4 color1, float4 color2, float4 color3, float blend, float4 &color, float &alpha)
void node_tex_image_empty (float3, float4 &color, float &alpha)
void node_tex_tile_linear (float3 co, sampler2DArray ima, sampler1DArray map, float4 &color, float &alpha)
void node_tex_tile_cubic (float3 co, sampler2DArray ima, sampler1DArray map, float4 &color, float &alpha)

Function Documentation

◆ node_tex_image_cubic()

void node_tex_image_cubic ( float3 co,
sampler2D ima,
KernelGlobals & ,
float4 & color,
float & alpha )

◆ node_tex_image_empty()

void node_tex_image_empty ( float3 ,
float4 & color,
float & alpha )

Definition at line 202 of file gpu_shader_material_tex_image.bsl.hh.

References node_tex_image_empty().

Referenced by node_tex_image_empty().

◆ node_tex_image_linear()

void node_tex_image_linear ( float3 co,
sampler2D ima,
KernelGlobals & kg,
float4 & color,
float & alpha )

◆ node_tex_tile_cubic()

◆ node_tex_tile_linear()

void node_tex_tile_linear ( float3 co,
sampler2DArray ima,
sampler1DArray map,
float4 & color,
float & alpha )

◆ point_map_to_sphere()

void point_map_to_sphere ( float3 vin,
float3 & vout )

◆ point_map_to_tube()

void point_map_to_tube ( float3 vin,
float3 & vout )

◆ point_texco_clamp()

void point_texco_clamp ( float3 vin,
sampler2D ima,
float3 & vout )

Definition at line 19 of file gpu_shader_material_tex_image.bsl.hh.

References clamp(), point_texco_clamp(), and textureSize().

Referenced by point_texco_clamp().

◆ point_texco_remap_square()

void point_texco_remap_square ( float3 vin,
float3 & vout )

Definition at line 13 of file gpu_shader_material_tex_image.bsl.hh.

References point_texco_remap_square().

Referenced by point_texco_remap_square().

◆ tex_box_blend()

void tex_box_blend ( float3 N,
float4 color1,
float4 color2,
float4 color3,
float blend,
float4 & color,
float & alpha )

Definition at line 150 of file gpu_shader_material_tex_image.bsl.hh.

References abs, clamp(), dot(), max, N, tex_box_blend(), float3::x, float3::y, and float3::z.

Referenced by tex_box_blend().

◆ tex_box_sample_cubic()

void tex_box_sample_cubic ( float3 texco,
float3 N,
sampler2D ima,
KernelGlobals & kg,
float4 & color1,
float4 & color2,
float4 & color3 )

◆ tex_box_sample_linear()

void tex_box_sample_linear ( float3 texco,
float3 N,
sampler2D ima,
KernelGlobals & ,
float4 & color1,
float4 & color2,
float4 & color3 )