Expanding on Minimal D3D11 elaborations I, adding shadowmapping and incorporating various improvements and alternative approaches to the rendering setup, such as manual vertex fetching, samplerless texture lookup, null shader depth map rendering and procedurally generated texture and [instance data](https://gist.github.com/d7samurai/abab8a580d0298cb2f34a44eec41d
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
| /*************************************************************************************** | |
| * Copyright (C) Anton Kovalev (vertver), 2026. All rights reserved. | |
| * HLSL single-pass NTSC filter | |
| * MIT License | |
| *************************************************************************************** | |
| * shout out to LMP88959, which implemented an awesome NTSC emulation (fixed-point). | |
| * https://github.com/LMP88959/NTSC-CRT | |
| ***************************************************************************************/ | |
| //Original: https://gist.github.com/vertver/670a85babb52f20ba6b5e08e5f02f08e |
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
| // Helper function: sample the visible hemisphere from a spherical cap | |
| vec3 SampleVndf_Hemisphere(vec2 u, vec3 wi) | |
| { | |
| // sample a spherical cap in (-wi.z, 1] | |
| float phi = 2.0f * M_PI * u.x; | |
| float z = fma((1.0f - u.y), (1.0f + wi.z), -wi.z); | |
| float sinTheta = sqrt(clamp(1.0f - z * z, 0.0f, 1.0f)); | |
| float x = sinTheta * cos(phi); | |
| float y = sinTheta * sin(phi); | |
| vec3 c = vec3(x, y, z); |
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
| // Copyright (c) 2023 Tomasz Stachowiak | |
| // | |
| // This contribution is dual licensed under EITHER OF | |
| // | |
| // Apache License, Version 2.0, (http://www.apache.org/licenses/LICENSE-2.0) | |
| // MIT license (http://opensource.org/licenses/MIT) | |
| // | |
| // at your option. | |
| #include "/inc/frame_constants.hlsl" |
