Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube
This file contains 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
public BBR(TargetInfo Target) | |
{ | |
//Config | |
//BuildConfiguration.RelativeEnginePath = /* ...*/; | |
//Debug | |
//---BuildConfiguration.bOmitPCDebugInfoInDevelopment = true /* d=false */; | |
//BuildConfiguration.bSupportEditAndContinue = false /* d=false */; | |
//BuildConfiguration.bDisableDebugInfoForGeneratedCode = true /* d=true */; | |
//BuildConfiguration.bAllowLTCG = false /* d=false */; |
This file contains 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
// https://stackoverflow.com/questions/24480901/libgdx-overlay-texture-above-another-texture-using-shader | |
vec4 layer(vec4 foreground, vec4 background) { | |
return foreground * foreground.a + background * (1.0 - foreground.a); | |
} | |
#pragma glslify: export(layer); |
- 2011 - A trip through the Graphics Pipeline 2011
- 2015 - Life of a triangle - NVIDIA's logical pipeline
- 2015 - Render Hell 2.0
- 2016 - How bad are small triangles on GPU and why?
- 2017 - GPU Performance for Game Artists
- 2019 - Understanding the anatomy of GPUs using Pokémon
- 2020 - GPU ARCHITECTURE RESOURCES
This file contains 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
// Doesn't require pow() | |
// Not smoothed i.e. like a triangle function | |
float linearParabola(float x) { | |
return 1.0 - abs(x * 2.0 - 1.0); | |
} | |
// Slightly smoothed, no math function | |
float parabola(float x) { | |
return 4.0 * x * (1.0 - x); |
This file contains 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
Shader "FX/PixelDot" | |
{ | |
Properties | |
{ | |
[NoScaleOffset] _MainTex ("Texture", 2D) = "white" {} | |
_Color ("Color", Color) = (1, 1, 1, 1) | |
_Size ("Pixel Size", Range(1, 64)) = 1 | |
} | |
SubShader | |
{ |
This file contains 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
//MIT License | |
//Copyright (c) 2021 Felix Westin | |
//Source: https://github.com/Fewes/MinimalAtmosphere | |
//Ported to GLSL by Marcin Ignac | |
#ifndef ATMOSPHERE_INCLUDED | |
#define ATMOSPHERE_INCLUDED | |
// ------------------------------------- |