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
#include <stdlib.h> | |
#include <stdio.h> | |
static inline unsigned int reverse_bits(register unsigned int number) | |
{ | |
register unsigned int shift = __builtin_clz(number); | |
number = (((number & 0xAAAAAAAA) >> 0x01) | | |
((number & 0x55555555) << 0x01)); |
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
const highp float EPSILON = .01; | |
const highp float AMBIENT_OCCLUSION_SAMPLE_DISTANCE = .05; | |
const highp float SHADOW_SAMPLE_DISTANCE = .25; | |
int MATERIAL_ID = 0; | |
mediump float ITERATION_COUNT = 0.; | |
highp float sample_and_update_material_id(highp vec3 position) | |
{ | |
highp float sphere_1 = length(position - vec3(-3., 0., 0.)) - 3.5; |
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
clear | |
developer 1 | |
con_enable 1 | |
rate 128000 | |
cl_cmdrate 128 | |
cl_updaterate 128 |
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
$env:LC_ALL = 'C.UTF-8' | |
Set-Location D: | |
function Import-VisualStudio () { | |
$installationPath = & "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vswhere.exe" ` | |
-property installationPath | |
Import-Module (Join-Path $installationPath "Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll") |