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


pack functions fxh hlsl


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.


29.06.18 [12:45 UTC] by everyoneishappy | 671 downloads
Show 1 older revisions

Older Revisions

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

everyoneishappy 29/06/2018 - 11:46
  • Added 2D & 3D vector control parameters to vector valued Bias & Gain functions
  • Various bugfixes, including some inverted normals horror that was making problems elsewhere

anonymous user login


~13h ago

joreg: another step closer: we've announced the licensing model for upcomming vvvv gamma: vvvv-gamma-licensing #vvvv #vl #visualprogramming

~22h ago

synth: Heya! is there a node to trat geometry as double sided? Or i should fix it in 3d app?

~3d ago

joreg: if you haven't yet: we're still accepting entries to our 2019 survvvvey https://goo.gl/forms/g3t6gwSwUfZwMOyd2 #vvvv

~3d ago

joreg: @polyrhythm these look great. do you know you can share a screenshot by simply pressing ctrl+3 on a renderer?!

~3d ago

polyrhythm: @AKa-visuals yep your comment helped me prioritize them :)

~3d ago

AKa-visuals: @polyrhythm ohhhh you heard my wishes.. supercool

~3d ago

polyrhythm: IBL support WIP for raytracer: https://i.imgur.com/qnngDIU.jpg

~8d ago

domj: Little vvvv robotics and light control in the Tschechisches Zentrum Berlin in few hours, just patching en route https://bit.ly/2V0FAb3 ;)

~8d ago

AKa-visuals: @polyrhythm Stunning!.. cant wait for ibl integration. Keep on!

~8d ago

catweasel: @polyrhythm looks lovely!