Last active
June 16, 2017 18:27
-
-
Save smunilla/002f20eafaec3c1e6ff161bf035814d7 to your computer and use it in GitHub Desktop.
GLSL Parameters
This file contains hidden or 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
// START of parameters | |
// gamma of simulated CRT | |
CRTgamma = 2.4; | |
// gamma of display monitor (typically 2.2 is correct) | |
monitorgamma = 2.2; | |
// overscan (e.g. 1.02 for 2% overscan) | |
overscan = vec2(1.001,1.001); | |
// aspect ratio | |
aspect = vec2(1.0, 0.75); | |
// lengths are measured in units of (approximately) the width of the monitor | |
// simulated distance from viewer to monitor | |
d = 2.0; | |
// radius of curvature | |
R = 4.0; | |
// tilt angle in radians | |
// (behavior might be a bit wrong if both components are nonzero) | |
const vec2 angle = vec2(0.0,-0.01); | |
// size of curved corners | |
cornersize = 0.005; | |
// border smoothness parameter | |
// decrease if borders are too aliased | |
cornersmooth = 1000.0; | |
// END of parameters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment