This file contains hidden or 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
module.exports = function(_config) { | |
const dependencies = []; | |
dependencies.push('./src/lib/three.js'); | |
dependencies.push('./test/browser-support/webgl-mock.js'); | |
const projectFiles = require('./src/script-manifest.json').map(src => 'src/' + src); | |
dependencies.push(...projectFiles); |
This file contains hidden or 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
$ npm install karma \ | |
karma-chrome-launcher \ | |
karma-coverage \ | |
karma-mocha \ | |
karma-mocha-reporter |
This file contains hidden or 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
13:10:16 Started by upstream project "[8mha:AAAAmx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgZ+/az8JP3i5MSS3MQ8XSN9AOcVSrrEAAAA[0mscatman-2" build number [8mha:AAAAnR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAxmoBn6WflJ+sXJiSW5iXm6RvqGpsYApTlieccAAAA=[0m153 | |
13:10:16 originally caused by: | |
13:10:16 Started by upstream project "[8mha:AAAAmx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgZ+/az8JP3i5MSS3MQ8XUN9ACRGZ5HEAAAA[0mscatman-1" build number [8mha:AAAAnR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAxmoBn6WflJ |
This file contains hidden or 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
uniform vec3 sColor1; | |
uniform vec3 dColor1; | |
uniform vec3 sColor2; | |
uniform vec3 dColor2; | |
uniform sampler2D texture; | |
varying vec2 vUv; | |
void main() { | |
vec4 tColor = texture2D( texture, vUv ); | |
if (tColor.x == sColor1.x && tColor.y == sColor1.y && tColor.z == sColor1.z) { | |
tColor.x = dColor1.x; |
This file contains hidden or 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
uniform vec3 color1; | |
uniform vec3 color1; | |
uniform sampler2D texture; | |
varying vec2 vUv; | |
void main() { | |
vec4 tColor = texture2D( texture, vUv ); | |
if (color == blue1) { | |
tColor = color1; | |
} |
This file contains hidden or 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
var vertexShader = "varying vec2 vUv; void main() {vUv = uv;gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );}"; | |
var fragmentShader = "uniform vec3 color; uniform sampler2D texture; varying vec2 vUv; void main() { vec4 tColor = texture2D( texture, vUv ); gl_FragColor = vec4( mix( color, tColor.rgb, tColor.a ), 1.0 );}"; | |
var texture = THREE.ImageUtils.loadTexture( "sprites/stageselect.png"); | |
var geometry = new THREE.PlaneGeometry(48, 48); // Is not visible. | |
var geometry = new THREE.SphereGeometry(32, 4, 4); // Is visible. | |
var material = new THREE.ShaderMaterial({ | |
uniforms:{ |
This file contains hidden or 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
/* Offending method on #94 */ | |
Engine.Collision = function() | |
{ | |
this.objects = []; | |
this.collisionIndex = []; | |
this.positionCache = []; | |
this.collisionCount = 0; | |
this.collisionTests = 0; |
This file contains hidden or 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 mmap | |
import ctypes | |
GUI = 2 | |
CUI = 3 | |
# Take chrome.exe from the current directory | |
with open("chrome.exe", "r+b") as f: | |
map = mmap.mmap(f.fileno(), 1024, None, mmap.ACCESS_WRITE) | |
# DWORD field of IMAGE_DOS_HEADER |
This file contains hidden or 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
<?php | |
// Init | |
$PDO = new \PDO($dsn, $user, $pass); | |
$DB = new \Asenine\Database\Connection($PDO); | |
try { | |
$DB->begin(); | |
// Simple execution | |
$DB->execute("UPDATE users SET |
This file contains hidden or 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 | |
TEMP_BRANCH=temp/stabilize_master | |
git fetch origin master:$TEMP_BRANCH && git checkout $TEMP_BRANCH && git fetch origin testing:testing && git fetch origin stable:stable \ | |
&& git checkout testing && git merge $TEMP_BRANCH \ | |
&& git checkout stable && git merge testing \ | |
&& git branch -d $TEMP_BRANCH |
NewerOlder