This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file should be compiled with DXC against shader model 6.6 | |
// Change the TARGET_API define here to either D3D or VK and switch compiler output formats (DXIL or SPIR-V) to match | |
#define D3D 1 | |
#define VK 2 | |
#define TARGET_API D3D | |
// Begin macro magic | |
#if TARGET_API == D3D | |
// No special root signature needed! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 | |
/* | |
DoF with bokeh GLSL shader v2.4 | |
by Martins Upitis (martinsh) (devlog-martinsh.blogspot.com) | |
---------------------- | |
The shader is Blender Game Engine ready, but it should be quite simple to adapt for your engine. | |
This work is licensed under a Creative Commons Attribution 3.0 Unported License. | |
So you are free to share, modify and adapt it for your needs, and even use it for commercial use. |