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
import sys | |
import socketserver | |
from http.server import SimpleHTTPRequestHandler | |
class WasmHandler(SimpleHTTPRequestHandler): | |
def end_headers(self): | |
# Include additional response headers to allow for use of the | |
# SharedArrayBuffer in Firefox. | |
self.send_header("Cross-Origin-Opener-Policy", "same-origin") | |
self.send_header("Cross-Origin-Embedder-Policy", "require-corp") |
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
from PIL import Image | |
import glob, os | |
# Size of each partition image | |
in_size = 504 | |
# How many partitions there are per axis | |
x_count = 11 | |
y_count = 11 | |
final_size = (in_size * x_count, in_size * y_count) |
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
shader_type spatial; | |
const float PI = 3.14159265358979323846; | |
uniform vec4 color: hint_color; | |
uniform vec4 mesh_data; | |
uniform float curve_angle = 0; | |
uniform float curve_amount = 0; | |
uniform vec3 curve_direction = vec3(0); |
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
@ECHO off | |
python scons_helper.py vsproj=yes platform=windows target=release_debug tools=yes bits=64 custom_modules=../godot_modules4 -j4 | |
pause |
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
shader_type spatial; | |
render_mode skip_vertex_transform, unshaded; | |
//Albedo texture | |
uniform sampler2D albedoTex : hint_albedo; | |
//Geometric resolution for vert snap | |
uniform float snapRes = 15.0; | |
//vec4 for UV recalculation |
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
shader_type spatial; | |
render_mode unshaded, cull_disabled, cull_front; | |
uniform samplerCube cubemap; | |
varying vec3 viewDir; | |
void vertex() | |
{ | |
viewDir = (WORLD_MATRIX * vec4(VERTEX, 1.0)).xyz - (CAMERA_MATRIX * vec4(0.0, 0.0, 0.0, 1.0)).xyz; |
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
#!/usr/bin/env python | |
## | |
# Example: $ ./sizencrop.py -w 90 -h 90 -y -i test/*.jpg | |
# [+] Cropping a.jpg to 90x90 | |
# \ Done, saved to a.jpg | |
# [+] Cropping b.jpg to 90x90 | |
# \ Done, saved to b.jpg | |
## |
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
Linux: | |
export PS1="\[\e[1;32m\]┌─[\[\e[1;31m\]$( free -m|awk '/^\-\/\+ buffers\/cache\:/{print $4}' )MB\[\e[1;32m\]]──[\[\e[1;33m\]\u\[\e[m\]@\[\e[1;33m\]\h\[\e[1;32m\]]──[\[\e[1;34m\]\w\[\e[1;32m\]]\n└─>$\[\e[m\] " | |
Mac: | |
export PS1='\[\e[1;32m\]┌─[\[\e[1;31m\]$( vm_stat | awk '"'"'/^Pages free\:.+/{print $3"*4096/1024/1024"}'"'"' | sed -e "s/\.//" | bc )MB\[\e[1;32m\]]──[\[\e[1;33m\]\u\[\e[m\]@\[\e[1;33m\]\h\[\e[1;32m\]]──[\[\e[1;34m\]\w\[\e[1;32m\]]\n└─>$\[\e[m\] ' |