Skip to content

Instantly share code, notes, and snippets.

View Arcnor's full-sized avatar
🏠
Working from home

Edu Garcia Arcnor

🏠
Working from home
View GitHub Profile
@reduz
reduz / GPU_driven_renderer.md
Last active April 29, 2024 15:13
GPU Driven Renderer for Godot 4.x

GPU Driven renderer design for Godot 4.x

Goals:

The main goal is to implement a GPU driven renderer for Godot 4.x. This is a renderer that happens entirely on GPU (no CPU Dispatches during opaque pass).

Additionally, this is a renderer that relies exclusively on raytracing (and a base raster pass aided by raytracing).

It is important to make a note that we dont want to implement a GPU driven renderer similar to that of AAA/Unreal, as example.

@Serikov
Serikov / main.cpp
Last active April 4, 2023 12:12
C++ Coroutines Ts generator<T> with co_await
#include <experimental/coroutine>
#include <stdexcept>
#include <variant>
namespace detail {
// simple type erasure for iterators
template<typename T>
struct generic_iterable
{
@Chlumsky
Chlumsky / msdf-preview.shadron
Last active August 27, 2021 07:41
MSDF Preview
#include <math_constants>
#include <median>
#include <billboard>
#include <affine_transform>
glsl float linearStep(float a, float b, float x) {
return clamp((x-a)/(b-a), 0.0, 1.0);
}