Skip to content

Instantly share code, notes, and snippets.

Niko Nevatie nnevatie

Block or report user

Report or block nnevatie

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
nnevatie / backdrop.fs.glsl
Created Jan 14, 2016
Backdrop Fragment Shader
View backdrop.fs.glsl
#version 150
// Const
const float PI = 3.14159265358979323846;
// Uniforms
uniform sampler2D tex; // Skysphere texture
uniform mat4 v; // View matrix
uniform vec3 pos; // Camera position
uniform vec4 gridColor; // Grid color
nnevatie / quad.vs.glsl
Created Jan 14, 2016
Backdrop Vertex Shader
View quad.vs.glsl
#version 150
// Uniforms
uniform float tanHalfFov; // View tan(0.5 * FOV)
uniform float aspectRatio; // View aspect-ratio
uniform float z; // Optional Z-coordinate
// Input
in vec3 position;
You can’t perform that action at this time.