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
THREE.ShaderLib[ 'lambert' ].fragmentShader = THREE.ShaderLib[ 'lambert' ].fragmentShader.replace( | |
`vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;`, | |
` | |
#ifdef DOUBLE_SIDED | |
reflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor ); | |
reflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ); | |
reflectedLight.directDiffuse = diffuseColor.rgb; | |
reflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask(); | |
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
module.exports = Class('Lente.System.EventEmitter', { | |
'private string name' : '', | |
'private object listeners' : {}, | |
'private object last_event' : {}, | |
/** | |
* @constructor | |
* @param {String} name |
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
<?php | |
/** | |
* Mines data from the battle net API. | |
* | |
* Should be used as a console command. | |
*/ | |
class DataMiner | |
{ | |
private $base_uri; |
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
<?php | |
// LICENSE : http://www.wtfpl.net/txt/copying/ | |
/** | |
* Returns a raw request URI ready to be sent to the battle.net API. | |
* | |
* @param string $url | |
* @param array $parameters | |
* @return string | |
*/ |
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
[Pathfinding] | |
bAttemptMovementTransitionAnimations=0 | |
bAttemptTurnToRunAnimations=0 | |
bAvoidBoxTriggersFailure=0 | |
bBackgroundNavmeshUpdate=0 | |
bBackgroundPathing=0 | |
bContinueTweeingAfterTweenerEnd=0 | |
bCreateDebugInfo=0 | |
bCutDoors=0 | |
bDisableUnloadedPaths=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
/** | |
* Instantiates a Swiper. | |
* | |
* Automatically adjusts the height of all slides based on the one slide | |
* which has the largest height value. | |
* | |
* @param string container_class | |
* @param string slide_class | |
* @param string pagination_class | |
*/ |
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
// Orgineel: | |
$(window).resize(function() { | |
// Iterate over slides to find the one with the maximum height. | |
// Once found, store it in the max_height variable. | |
max_height = 0; | |
$(".swiper-container .slide").each(function() { | |
// First, we get rid of our previously set height, in case | |
// the content container is getting smaller instead of larger. | |
$(this).css('height', 'auto'); |
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
var WidgetInterface = Interface({ | |
update: 'function' | |
}); | |
/** | |
* Abstract Widget class. | |
* | |
* Instantiating this will result in an error because 'update' | |
* isn't implemented as defined in the interface. | |
*/ |