» Happy.fxh
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.


pack hlsl fxh functions


Lots of HLSL functions in a (somewhat) systematic and organised collection of header files. I made these for use with my vvvv projects and contributions, but should be fairly usable with HLSL in general.

Headers.txt - just links to the fxh files in best practice format for easy copy pasting in vvvv context

sbuffer.fxh - DX11 Structured Buffer Helpers

calc.fxh - Calculus functions & macros

noise.fxh - Noise basis functions & utilities

map.fxh - Handy mapping functions

transform.fxh - Transformation matrix functions

sdf.fxh - loads of signed distance fields & helpers. Quite a lot are ported from hg_sdf GLSL lib by MERCURY (CC BY-NC 2016) http://mercury.sexy/hg_sdf

raymarch.fxh - Raymarching related functions

uv.fxh - UV and texture mapping functions

color.fxh - Color space conversions

spline.fxh - Some cubic b-splines

To install everything via VPM: https://vvvvpm.github.io/#Happy.fxh To install manually just place in /packs folder.
For more frequent updates, bug fixes and issue reporting: https://github.com/everyoneishappy/happy.fxh

MIT License- feel free to use in your creative & commercial projects. If used in production a credit is very appreciated:

Kyle McLean /http://everyoneishappy.com

I’m also very happy if you are doing something interesting and want to employ me on a project basis.


03.01.18 [08:01 UTC] by everyoneishappy | 220 downloads
1st upload

anonymous user login


~8h ago

microdee: it's like telling a west-Ukrainian that they're Russians...

~8h ago

microdee: @tonfilm: Telling a person from Hong Kong that they're Chinese is a bigger insult than calling their mom names ;)

~8h ago

tonfilm: Patch your own #mainloop with microsecond precision in #reactive #dotNET style. #rxNET #rx #gamedev #vvvv #VL vl-patch-your-own-mainloops

~9h ago

neuston: Sad. It hurts.

~9h ago

joreg: well, they would even have to choose "united" kingdom..

~9h ago

neuston: M... not work emotionally. Like asking a Scotland citizen to pick England

~10h ago

joreg: @neuston would it work for you to select "China"?

~10h ago

neuston: No Hong Kong in the country list of license page

~19h ago

udo2013: please excuse me. it works! installed "InstanceNoodles" again. this time via "vpm". good thing :-)