ShaderNodeTexPointDensity(ShaderNode)¶
base classes — bpy_struct
, Node
, NodeInternal
, ShaderNode
-
class
bpy.types.
ShaderNodeTexPointDensity
(ShaderNode)¶ -
interpolation
¶ Texture interpolation
Closest
Closest, No interpolation (sample closest texel).Linear
Linear, Linear interpolation.Cubic
Cubic, Cubic interpolation.
Type: enum in [‘Closest’, ‘Linear’, ‘Cubic’], default ‘Linear’
-
particle_color_source
¶ Data to derive color results from
PARTICLE_AGE
Particle Age, Lifetime mapped as 0.0 - 1.0 intensity.PARTICLE_SPEED
Particle Speed, Particle speed (absolute magnitude of velocity) mapped as 0.0-1.0 intensity.PARTICLE_VELOCITY
Particle Velocity, XYZ velocity mapped to RGB colors.
Type: enum in [‘PARTICLE_AGE’, ‘PARTICLE_SPEED’, ‘PARTICLE_VELOCITY’], default ‘PARTICLE_AGE’
-
particle_system
¶ Particle System to render as points
Type: ParticleSystem
-
point_source
¶ Point data to use as renderable point density
PARTICLE_SYSTEM
Particle System, Generate point density from a particle system.OBJECT
Object Vertices, Generate point density from an object’s vertices.
Type: enum in [‘PARTICLE_SYSTEM’, ‘OBJECT’], default ‘PARTICLE_SYSTEM’
-
radius
¶ Radius from the shaded sample to look for points within
Type: float in [0.001, inf], default 0.0
-
resolution
¶ Resolution used by the texture holding the point density
Type: int in [1, 32768], default 0
-
space
¶ Coordinate system to calculate voxels in
Type: enum in [‘OBJECT’, ‘WORLD’], default ‘OBJECT’
-
vertex_attribute_name
¶ Vertex attribute to use for color
Type: string, default “”, (never None)
-
vertex_color_source
¶ Data to derive color results from
VERTEX_COLOR
Vertex Color, Vertex color layer.VERTEX_WEIGHT
Vertex Weight, Vertex group weight.VERTEX_NORMAL
Vertex Normal, XYZ normal vector mapped to RGB colors.
Type: enum in [‘VERTEX_COLOR’, ‘VERTEX_WEIGHT’, ‘VERTEX_NORMAL’], default ‘VERTEX_COLOR’
-
classmethod
is_registered_node_type
()¶ True if a registered node type
Returns: Result Return type: boolean
-
classmethod
input_template
(index)¶ Input socket template
Parameters: index (int in [0, inf]) – Index Returns: result Return type: NodeInternalSocketTemplate
-
classmethod
output_template
(index)¶ Output socket template
Parameters: index (int in [0, inf]) – Index Returns: result Return type: NodeInternalSocketTemplate
-
cache_point_density
(depsgraph=None)¶ Cache point density data for later calculation
-
calc_point_density
(depsgraph=None)¶ Calculate point density
Returns: RGBA Values Return type: float array of 1 items in [-inf, inf]
-
calc_point_density_minmax
(depsgraph=None)¶ Calculate point density
Return (min, max): min, min, float array of 3 items in [-inf, inf]
max, max, float array of 3 items in [-inf, inf]
-
classmethod
bl_rna_get_subclass
(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The RNA type or default when not found. Return type: bpy.types.Struct
subclass
-
classmethod
bl_rna_get_subclass_py
(id, default=None)¶ Parameters: id (string) – The RNA type identifier. Returns: The class or default when not found. Return type: type
-
Inherited Properties
Inherited Functions