Sunday, June 29, 2025

Affinity Photo Procedural Texture Filter

 Affinity Photo Procedural Texture Filter Examples

Affinity Help for PTF

List of PTF Functions

This is a list of all of the PTF functions I am aware of. Those used in linked videos are in bold.

Sign Related Functions

abs sign copysign

Rounding Related Functions

ceil floor fmod fraction fmod irem idiv round roundup rounddown trunc truncate whole

Trig Functions

sin cos tan acos asin atan atan2 pi

Power Related Functions

pow powr sq sqrt 

Statistical Functions

average max mid min

Specialized Math Functions

dim fma rgbtoi

Numeric Range Related Functions

tocui tohcui clamp clampmin clampmax saturate

Geometry and Vector Related Functions

cross dist dist_sq distance dot length length_squared norm normalise normalize

vec2 vec3 vec4 vec5 vec6 tovec3 tovec4 tovec5 tovec6

rev rotl rotr

swap 12 swap 13 swap23 swapxy swapxz swapyz swaprg swaprb swapgb

neg1 neg2 neg3 neg12 negx negy negz negxy negr negg negb negrg

debump

Interpolation Functions

lerp mix scurveinterp scerp sininterp serp cubicinterp cerp cubic scurveinterpolant

scint sininterpolant sint

Step Functions

mapcui step smoothstep smoothsteplin smoothstepsc smoothstepsin smoothstepcs smoothstepsq smoothstepsqi smoothstepcb smoothstepcbi smoothstepsin smoothstepsini smoothstepcr smoothstepcri smoothsteprt smoothsteprti 

stepn smoothstepn smoothstepnlin smoothstepnsc smoothstepncs smoothstepnsq smoothstepsqi smoothstepncb smoothstepncbi smoothstepnsini smoothstepncr smoothstepncri smoothstepncrt smoothstepnrti

Quantization

quantize quantizelin quantizesc quantizesin quantizecs

Oscillators

osc osci oscsc oscsin osccs osccubic oscsq oscsqi osccb osccbi oscpsin oscpsini osccr osccri oscrt oscrti

smoothosc smoothosclin smoothoscsin smoothosccs

osch oschi oschsc oschsin oschcs oschcubic oschsq oschsqi oschcb oschcbi oschpsin oschpsini oschcr oschcri oschrt oschrti

smoothosch smoothoschlin smoothoschsin smoothoschcs

Noise

noise noisei noisesc noisesin noisecs noisecubic noisesq noisesqi noisecb noisecbi noisepsin noisepsini noisecr noisecri noisert noiserti

noiseh noisehi noisehsc noisehsin noisehcs noisehcubic noisehsq noisehsqi noisehcb noisehcbi noisehpsin noisehpsini noisehcr noisehcri noisehrt noisehrti

perlin perlinsc perlinsin perlincubic perlincs

perlinh perlinhsc perlinhsin perlinhcubic perlinhcs

cellnoise cellnoise2 cellnoisedist cellnoiseedge

dir diri dirsc dirsin dircs 

udiri udir udirsc udirsin udircs

dir3 dir3i dir3sc dir3sin dir3cs

udir3 udir3i udirsc udir3sin udir3cs

Other functions

var

Reserved/Internal Variable Names

w h x y rx ry R G B pi

Operators

+ - * / . = ;

I am making a series of video tutorials for Affinity Photo's procedural texture filter. This page provides an index for the functions used in each video. 

var vec2 noisei cos sin smoothstep osc quantize perlinhcubic osc average


fraction oscsq

var vec2 pow noisei smoothstep osccr osci



var norm vec2 sqrt swapxy fraction  length step atan2 quantize 

rev rotl rotr swap12 swap13 swap23 swapxy swapxz swapyz swaprg swaprb swapgb neg1 neg2 neg3 neg12 negx negy negz negxy negr negg negb negrg

var vec2 cos sin vec3 oscsc osccri oschsc osci dirsc

var vec2 atan2 length cellnoise abs dirsc smoothstep

var vec2 atan length sin smoothstep


var vec2 fraction smoothstepcs length length max 

var vec2 step perlincubic cellnoisedist

var vec2 vec3 sqrt fraction step max min smoothstep

var vec2 noiseh perlincubic



var vec2 atan2 floor osc length cos

var fraction vec2 atan2 floor osc length pow cos

var fraction vec2 atan2 osci pow cos floor length

var vec2 floor diri step length fraction

var vec2 atan2 floor smoothstep length cos

var vec2 clampmin clampmax osc smoothstep