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
############################################## | |
# | |
# Author: NerdOfTheMountain (Marcos A. Biteti - https://github.com/marcosbitetti) | |
# | |
# This work is licensed under a Creative Commons Attribution 4.0 International License. | |
# | |
# USAGE: | |
# 1. Attach this script in a AnimationPlayer node | |
# 2. Set animation name and optionally framerate in properties editor | |
# 3. In project setthings choose: fullscreen = true, stretch mode = viewport and apect=igonre |
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
*~ | |
*.swp | |
*.swo | |
.fscache | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes |
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
## | |
# Automatic versioning the code using GIT | |
# need GIT instaled on OS | |
func _dev_auto_commit(): | |
if OS.is_debug_build(): | |
var path = '/usr/bin/git' | |
var finder = File.new() | |
if not finder.file_exists(path): | |
if finder.file_exists('/usr/sbin/git'): | |
path = '/usr/sbin/git' |
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
// VERTEX SHADER | |
uniform vec2 screen_size = vec2(1280,800); | |
VAR1 = vec4(1.0/screen_size.x,1.0/screen_size.y,0.0,0.0); | |
// FRAGMENT SHADER | |
vec3 sc = | |
texscreen( vec2(SCREEN_UV.x-VAR1.x*4.0, SCREEN_UV.y-VAR1.y*4.0) ) * 0.0162162162 + | |
texscreen( vec2(SCREEN_UV.x-VAR1.x*3.0, SCREEN_UV.y-VAR1.y*3.0) ) * 0.0540540541 + |
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
extends Spatial | |
var camera = Camera.new() | |
var cam_offset | |
func _process(delta): | |
if get_parent().get_viewport().get_camera().get_global_transform().basis.z.dot(get_global_transform().origin)>0: | |
return | |
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
///// ----------- Fragment | |
uniform texture diffuse; | |
uniform texture normal; | |
vec4 cor = tex(diffuse,UV); | |
vec3 norm = 2.0 * tex(normal,UV).rgb;// - vec3(0.5,0.5,0.5); | |
DIFFUSE = cor.rgb; | |
NORMAL = NORMAL*norm; |
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
// Vertex | |
VAR1 = vec4(normalize(MODELVIEW_MATRIX * VERTEX), 1.0); | |
// Fragment | |
uniform texture matcap; | |
vec3 r = reflect(VAR1.xyz, NORMAL); | |
float m = 2.0 * sqrt( pow( r.x, 2.0 ) + pow( r.y, 2.0 ) + pow( r.z + 1.0, 2.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
#!/usr/bin/env python | |
import BaseHTTPServer | |
import SimpleHTTPServer | |
import time,os,sys | |
import SocketServer | |
import io,os,sys,re,fnmatch | |
import subprocess | |
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
#!/bin/bash | |
######################################################################### | |
# crop_sky.sh # | |
######################################################################### | |
# This file is part of: # | |
# WILD WITCH PROJECT # | |
# http://www.wildwitchproject/ # | |
######################################################################### | |
# CC-BY-SA # | |
# Wild Witch Project by Marcos Augusto Bitetti is licensed under a # |
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
// GLSL | |
void mainImage( out vec4 fragColor, in vec2 fragCoord ) | |
{ | |
vec2 uv = fragCoord.xy / iResolution.xy; | |
vec2 med = vec2(0.5,0.5);//(uv*0.5) - 1.0; | |
vec2 disVec = med-uv; | |
float l = disVec.x*disVec.x + disVec.y*disVec.y; //length(disVec); | |
float ll = 1.0 - l*l*4.0; | |
vec2 dist = med - disVec*ll; |
NewerOlder