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 120 | |
#extension GL_EXT_texture_array : require | |
#extension GL_EXT_texture_array : enable | |
// Originally Port's Poisson Disc (Optimized) Soft Shadow Shader (2015), modified by Stealth Commander/QuadStorm | |
// Includes a Contact-Hardening/Percentage-Closer/Perceptually-Correct Soft Shadows (CHSS/PCSS) implementation, and other many configurable variables | |
// 10th version | |
// Configuration: For the adventurous! |
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 460 | |
// Stealth Commander/QuadStorm's Ulimate Shader (2021-01-10) | |
// Built from Port's Poisson Disc (Optimized) Soft Shadow Shader (2015) | |
// Includes a Contact-Hardening/Percentage-Closer/Perceptually-Correct Soft Shadows (CHSS/PCSS) implementation | |
/* Relevant Files | |
CSM | |
https://developer.download.nvidia.com/SDK/10.5/opengl/src/cascaded_shadow_maps/doc/cascaded_shadow_maps.pdf | |
CHSS/PCSS |
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 120 | |
#extension GL_EXT_texture_array : require | |
#extension GL_EXT_texture_array : enable | |
//curved world feature/effect; https://forum.blockland.us/index.php?topic=77967.msg7787623#msg7787623 | |
bool curveTheWorld = true; | |
bool curveDirectionDown = true; | |
//adjust the effect | |
float curvePower = 2.0f; //exponential curve | |
float curveScale = 0.02f; //'fisheye factor', note that high values make lights higher than their real position |
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
function ISOTimeStampFormat(%dateTime) | |
{ | |
%pDT = strReplace(%dateTime, "/", " "); | |
return "20" @ getWord(%pDT, 2) @ "-" @ getWord(%pDT, 0) @ "-" @ getWord(%pDT, 1) SPC getWord(%pDT, 3); | |
} | |
function timeBottomPrint() | |
{ | |
if (isEventPending($timeBottomPrint)) |
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
#Persistent | |
#SingleInstance Force | |
SetTitleMatchMode 2 | |
serverWindow = BrickadiaServer-Win64-Shipping.exe | |
EnvGet, LocalAppData, LocalAppData | |
buildsFolder = %LocalAppData%\Brickadia\Saved\Builds | |
SetKeyDelay, 5, 10 | |
InputBox, BrickadiaDirectory, Input Brickadia Directory, Input the directory of your game (should end with "Brickadia_Alpha4_Patch1_CL3642_Win64") |
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
// QuickSaver - Save the builds you come across in one keypress | |
// Won't work first time around for an unknown reason | |
// Host Name (by Visolater) | |
function visolatorGetHostName() | |
{ | |
%s = $ServerInfo::Name; | |
%a = strPos(%s, "'s"); |
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 120 | |
#extension GL_EXT_texture_array : require | |
#extension GL_EXT_texture_array : enable | |
// Originally Port's Poisson Disc (Optimized) Soft Shadow Shader (2015), modified by Stealth Commander/QuadStorm | |
// Includes a Contact-Hardening/Percentage-Closer/Perceptually-Correct Soft Shadows (CHSS/PCSS) implementation, and other many configurable variables | |
// 10th version | |
// Configuration: For the adventurous! |
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 460 | |
// curved world feature/effect; https://forum.blockland.us/index.php?topic=77967.msg7787623#msg7787623 | |
bool curveTheWorld = false; | |
bool curveDirectionDown = true; | |
// adjust the effect | |
// exponential curve power |
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 460 | |
// Varying. | |
in vec4 vPos; | |
in vec3 worldNormal; | |
in vec3 worldPos; | |
// Global directional light uniforms. | |
uniform vec4 dirLightDir; | |
uniform vec4 dirLightColor; |
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 460 | |
// Varying. | |
out vec4 vPos; | |
out vec3 worldNormal; | |
out vec3 worldPos; | |
// 460 | |
uniform mat4 gl_ProjectionMatrix; | |
in vec4 gl_Vertex; |
NewerOlder