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
#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 |
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
#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; |