ACMX Vulkan Shader Library
GLSL 4.50 shader effects for ACMX's Vulkan renderer
Loading...
Searching...
No Matches
halluc_plasma_flame.frag File Reference

Vulkan fragment shader: halluc plasma flame. More...

Go to the source code of this file.

Macros

#define amp_high   ext.audio_bands.z
#define amp_low   ext.audio_bands.x
#define amp_mid   ext.audio_bands.y
#define amp_peak   ext.u2.w
#define amp_smooth   ext.u3.w
#define iMouse   ext.mouse
#define iResolution   ext.u0.zw
#define time_f   ext.u2.y

Functions

 layout (set=0, binding=1, std140) uniform SpriteExtended
 layout (set=0, binding=0) uniform sampler2D samp
 layout (location=0) out vec4 color
vec3 acidFlamePalette (float t)
 Evaluates acidFlamePalette for this shader effect.
vec2 wrapUV (vec2 v)
 Evaluates wrapUV for this shader effect.
vec4 mxTexture (sampler2D tex, vec2 uv)
 Evaluates mxTexture for this shader effect.
mat2 rot (float a)
 Evaluates rot for this shader effect.
float hash21 (vec2 p)
 Evaluates hash21 for this shader effect.
float vnoise (vec2 p)
 Evaluates vnoise for this shader effect.
float fbm (vec2 p)
 Evaluates fbm for this shader effect.
vec3 plasmaFlame (vec2 uv, vec2 center, float t)
 Evaluates plasmaFlame for this shader effect.
void main ()
 Executes the fragment shader entry point.

Variables

 ext
const float iAmplitude = 1.0
const float iFrequency = 1.0
const float iBrightness = 1.0
const float iContrast = 1.15
const float iSaturation = 1.30
const float iHueShift = 0.10
const float iZoom = 1.0
const float iRotation = 0.0

Detailed Description

Vulkan fragment shader: halluc plasma flame.

Definition in file halluc_plasma_flame.frag.

Macro Definition Documentation

◆ amp_high

#define amp_high   ext.audio_bands.z

Definition at line 17 of file halluc_plasma_flame.frag.

◆ amp_low

#define amp_low   ext.audio_bands.x

Definition at line 18 of file halluc_plasma_flame.frag.

◆ amp_mid

#define amp_mid   ext.audio_bands.y

Definition at line 19 of file halluc_plasma_flame.frag.

◆ amp_peak

#define amp_peak   ext.u2.w

Definition at line 20 of file halluc_plasma_flame.frag.

◆ amp_smooth

#define amp_smooth   ext.u3.w

Definition at line 21 of file halluc_plasma_flame.frag.

◆ iMouse

#define iMouse   ext.mouse

Definition at line 22 of file halluc_plasma_flame.frag.

◆ iResolution

#define iResolution   ext.u0.zw

Definition at line 23 of file halluc_plasma_flame.frag.

◆ time_f

#define time_f   ext.u2.y

Definition at line 24 of file halluc_plasma_flame.frag.

Function Documentation

◆ acidFlamePalette()

vec3 acidFlamePalette ( float t)

Evaluates acidFlamePalette for this shader effect.

Parameters
tInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 56 of file halluc_plasma_flame.frag.

References acidFlamePalette().

Referenced by acidFlamePalette(), and plasmaFlame().

◆ fbm()

float fbm ( vec2 p)

Evaluates fbm for this shader effect.

Parameters
pInput value for the calculation.
Returns
Computed float value.

Definition at line 123 of file halluc_plasma_flame.frag.

References fbm(), and vnoise().

◆ hash21()

float hash21 ( vec2 p)

Evaluates hash21 for this shader effect.

Parameters
pInput value for the calculation.
Returns
Computed float value.

Definition at line 99 of file halluc_plasma_flame.frag.

References hash21().

◆ layout() [1/3]

layout ( location = 0)

References layout().

◆ layout() [2/3]

layout ( set = 0,
binding = 0 )

References layout(), and spectrum().

◆ layout() [3/3]

layout ( set = 0,
binding = 1,
std140  )

Definition at line 7 of file halluc_plasma_flame.frag.

References layout().

◆ main()

void main ( void )

Executes the fragment shader entry point.

Definition at line 171 of file halluc_plasma_flame.frag.

References amp_high, amp_low, amp_mid, amp_peak, beat(), iBrightness, iContrast, iFrequency, iMouse, iResolution, iSaturation, main(), plasmaFlame(), spectrum(), and time_f.

◆ mxTexture()

vec4 mxTexture ( sampler2D tex,
vec2 uv )

Evaluates mxTexture for this shader effect.

Parameters
texInput value for the calculation.
uvInput value for the calculation.
Returns
Computed vec4 value.

Definition at line 81 of file halluc_plasma_flame.frag.

References mxTexture(), and wrapUV().

◆ plasmaFlame()

vec3 plasmaFlame ( vec2 uv,
vec2 center,
float t )

Evaluates plasmaFlame for this shader effect.

Parameters
uvInput value for the calculation.
centerInput value for the calculation.
tInput value for the calculation.
Returns
Computed vec3 value.

Definition at line 136 of file halluc_plasma_flame.frag.

References acidFlamePalette(), fbm(), h(), iAmplitude, iContrast, iResolution, iRotation, iZoom, mxTexture(), plasmaFlame(), and rot().

Referenced by main(), and plasmaFlame().

◆ rot()

mat2 rot ( float a)

Evaluates rot for this shader effect.

Parameters
aInput value for the calculation.
Returns
Computed mat2 value.

Definition at line 92 of file halluc_plasma_flame.frag.

References rot().

◆ vnoise()

float vnoise ( vec2 p)

Evaluates vnoise for this shader effect.

Parameters
pInput value for the calculation.
Returns
Computed float value.

Definition at line 109 of file halluc_plasma_flame.frag.

References hash21(), and vnoise().

◆ wrapUV()

vec2 wrapUV ( vec2 v)

Evaluates wrapUV for this shader effect.

Parameters
vInput value for the calculation.
Returns
Computed vec2 value.

Definition at line 74 of file halluc_plasma_flame.frag.

References wrapUV().

Variable Documentation

◆ ext

ext

Definition at line 16 of file halluc_plasma_flame.frag.

◆ iAmplitude

const float iAmplitude = 1.0

Definition at line 41 of file halluc_plasma_flame.frag.

◆ iBrightness

const float iBrightness = 1.0

Definition at line 43 of file halluc_plasma_flame.frag.

◆ iContrast

const float iContrast = 1.15

Definition at line 44 of file halluc_plasma_flame.frag.

◆ iFrequency

const float iFrequency = 1.0

Definition at line 42 of file halluc_plasma_flame.frag.

◆ iHueShift

const float iHueShift = 0.10

Definition at line 46 of file halluc_plasma_flame.frag.

◆ iRotation

const float iRotation = 0.0

Definition at line 48 of file halluc_plasma_flame.frag.

◆ iSaturation

const float iSaturation = 1.30

Definition at line 45 of file halluc_plasma_flame.frag.

◆ iZoom

const float iZoom = 1.0

Definition at line 47 of file halluc_plasma_flame.frag.