Skip to content

Instantly share code, notes, and snippets.

mrange

Block or report user

Report or block mrange

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View data.glsl
#version 150
uniform float time;
uniform vec2 resolution;
uniform vec2 mouse;
uniform vec3 spectrum;
uniform sampler2D texture0;
uniform sampler2D texture1;
uniform sampler2D texture2;
@mrange
mrange / flazor.fs
Last active Sep 15, 2019
Blazor Formlets
View flazor.fs
namespace Blazor.Formlets.Core
open FSharp.Core.Printf
open Microsoft.AspNetCore.Components
open Microsoft.AspNetCore.Components.Rendering
open Microsoft.AspNetCore.Components.Web
open System
open System.Text
View electric_alf.glsl
#version 150
in VertexData
{
vec4 v_position;
vec3 v_normal;
vec2 v_texcoord;
} inData;
out vec4 fragColor;
View rounded_box.glsl
#version 150
uniform float time;
uniform vec2 resolution;
uniform vec2 mouse;
uniform vec3 spectrum;
uniform sampler2D texture0;
uniform sampler2D texture1;
uniform sampler2D texture2;
View weird.glsl
#version 150
uniform float time;
uniform vec2 resolution;
uniform vec2 mouse;
uniform vec3 spectrum;
uniform sampler2D texture0;
uniform sampler2D texture1;
uniform sampler2D texture2;
View dodec.glsl
#version 150
in VertexData
{
vec4 v_position;
vec3 v_normal;
vec2 v_texcoord;
} inData;
out vec4 fragColor;
View fold_2d.glsl
#version 150
in VertexData
{
vec4 v_position;
vec3 v_normal;
vec2 v_texcoord;
} inData;
out vec4 fragColor;
@mrange
mrange / dfg.fs
Created Jun 21, 2019
DistanceField Generator
View dfg.fs
open System
open System.Drawing
open System.Drawing.Imaging
[<EntryPoint>]
let main argv =
Environment.CurrentDirectory <- @"C:\temp\GitHub\FsDistanceField\src"
let fallOff = 64
@mrange
mrange / mountain.glsl
Last active Jun 22, 2019
Mountains in GLSL, requires noise texture in iChannel0
View mountain.glsl
#version 150
in VertexData
{
vec4 v_position;
vec3 v_normal;
vec2 v_texcoord;
} inData;
out vec4 fragColor;
@mrange
mrange / cool.cpp
Created May 26, 2019
Cool stuff todo with C++
View cool.cpp
#include <cstdio>
#include <string>
#include <type_traits>
namespace
{
template<int i>
struct fac
{
static constexpr int value = i*fac<i-1>::value;
You can’t perform that action at this time.