Skip to content

Instantly share code, notes, and snippets.

@MarcusLlewellyn
MarcusLlewellyn / post.bat
Created April 4, 2020 23:36
Send debug info to Vircadia's crash service.
E:\src\athena\builds\sentry-cli-Windows-x86_64.exe --url https://staging-sentry.vircadia.dev/ --auth-token XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX upload-dif -o vircadia -p vircadia-interface e:\src\athena\builds\%~1
@MarcusLlewellyn
MarcusLlewellyn / compile.bat
Last active April 4, 2020 23:37
Compile and package Vircadia. Requires NSIS dependencies be in place.
msbuild /property:Configuration=RelWithDebInfo server-console\packaged-server-console-npm-install.vcxproj
msbuild /property:Configuration=RelWithDebInfo server-console\packaged-server-console.vcxproj
cmake --build . --target PACKAGE --config RelWithDebInfo -- /nologo /verbosity:minimal /maxcpucount
@MarcusLlewellyn
MarcusLlewellyn / config-pr.bat
Created April 4, 2020 23:34
Create PR config for building Vircadia
@ECHO OFF
PUSHD e:\src\athena\marcus-athena
FOR /f %%i IN ('git rev-parse HEAD') DO SET COMMIT=%%i
SET COMMIT=%COMMIT:~0,8%
POPD
SET CMAKE_BACKTRACE_URL=https://staging-sentry.vircadia.dev/api/2/minidump/?sentry_key=XXXXXXXXXXXXXXXXXXX
SET CMAKE_BACKTRACE_TOKEN=PR-%~1_%COMMIT%
SET RELEASE_NUMBER=%~1
SET RELEASE_TYPE=PR
SET PRODUCTION_BUILD=0
@MarcusLlewellyn
MarcusLlewellyn / config-release.bat
Created April 4, 2020 23:33
Vircadia cmake config for release builds.
REM Create release build cmake for Vircadia
@ECHO OFF
PUSHD e:\src\athena\marcus-athena
FOR /f %%i IN ('git rev-parse HEAD') DO SET COMMIT=%%i
SET COMMIT=%COMMIT:~0,8%
POPD
set CMAKE_BACKTRACE_URL=https://staging-sentry.vircadia.dev/api/2/minidump/?sentry_key=XXXXXXXXXXXXXXXXXXXXXXXXXXX
set CMAKE_BACKTRACE_TOKEN=RELEASE_%~1_%COMMIT%
set RELEASE_NUMBER=%~1
set RELEASE_TYPE=PRODUCTION
@MarcusLlewellyn
MarcusLlewellyn / rotatecube.fs
Created November 21, 2019 16:48
Hifi fragment shader that rotates a white square on a black background.
// Reelased into the Public Domain by Michael Bailey.
// Reminder that all GLSL code is run from top to bottom. This is why the main
// function getProceduralFragmentWith Position must always be on the bottom.
// Other functions above that must be created before they can be used.
// This function creates draws a simple rectangle.
// position: 0.0 to 1.0 value for the rectangle's center position.
// scale: x and y values with a 0.0 to 0.1
float rectshape(vec2 position, vec2 scale){

Keybase proof

I hereby claim:

To claim this, I am signing this object: