Vulkan fragment shader: ice. More...
Go to the source code of this file.
Macros | |
| #define | iResolution ext.u0.zw |
| #define | time_f ext.u2.y |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) out vec4 color | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| float | noise (vec2 p) |
| Evaluates noise for this shader effect. | |
| float | smoothNoise (vec2 p) |
| Evaluates smoothNoise for this shader effect. | |
| float | fbm (vec2 p) |
| Evaluates fbm for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: ice.
Definition in file ice.frag.
| float fbm | ( | vec2 | p | ) |
Evaluates fbm for this shader effect.
| p | Input value for the calculation. |
Definition at line 58 of file ice.frag.
References fbm(), frequency, and smoothNoise().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| void main | ( | void | ) |
| float noise | ( | vec2 | p | ) |
| float smoothNoise | ( | vec2 | p | ) |
Evaluates smoothNoise for this shader effect.
| p | Input value for the calculation. |
Definition at line 40 of file ice.frag.
References noise(), and smoothNoise().