- http://aras-p.info/texts/CompactNormalStorage.html
- http://www.realtimerendering.com/blog/deferred-lighting-approaches/
- http://d.hatena.ne.jp/hanecci/20130818/p1 (about Gbuffer layouts in games)
- http://bassser.tumblr.com/post/11626074256/reconstructing-position-from-depth-buffer
- https://gist.github.com/fisch0920/6770346
- http://www.cse.chalmers.se/~uffe/clustered_shading_preprint.pdf
- https://software.intel.com/sites/default/files/m/d/4/1/d/8/lauritzen_deferred_shading_siggraph_2010.pdf
- https://mynameismjp.wordpress.com/2012/03/31/light-indexed-deferred-rendering/
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
TimeSpy<Boolean> rsSpy = new TimeSpy<Boolean>() { | |
protected Boolean run() throws Exception { | |
return resultSet.next(); | |
} | |
}; | |
TimeSpy<Boolean> statementSpy = new TimeSpy<Boolean>() { | |
protected Boolean run() throws Exception { | |
return statement.execute(); | |
} |
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
package com.example.util; | |
import java.nio.ByteBuffer; | |
public final class ByteUtil { | |
private ByteUtil() { | |
} | |
/** |
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
#include <string> | |
#include <locale> | |
#include <codecvt> | |
//UTF-8 to UTF-16 | |
std::string source; | |
//... | |
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>,char16_t> convert; | |
std::u16string dest = convert.from_bytes(source); | |
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
/* @flow */ | |
// Implement SPECTRE on DAG | |
// WIP: Not tested and not runnable yet | |
import uuid from 'uuid' | |
import sortBy from 'lodash.sortby' | |
import SHA256 from 'crypto-js/sha256' | |
import immer from 'immer' |
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
/* | |
The MIT License (MIT) | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in | |
all copies or substantial portions of the Software. |
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
/* | |
This software is released under the MIT license: | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. |
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
function y = mdct_via_fft(x) | |
% This was edited together from multiple fns in the original source | |
% for this gist, I might well have introduced errors along the way. | |
% Rows of x correspond to samples | |
nrows = size(x,1); | |
if mod(nrows,4) ~= 0 || nrows<8 | |
error('Number of rows must be multiple of 4 and at least 8.'); | |
end | |
nr4 = nrows/4; |
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
using System; | |
using System.IO; | |
using ImageSharp; | |
using ImageSharp.Processing; | |
using SixLabors.Primitives; | |
using OpenTK.Graphics; | |
using OpenTK.Graphics.OpenGL; | |
using static OpenTK.DisplayDevice; | |
using Processing.OpenTk.Core.Extensions; |
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
using System; | |
using System.IO; | |
using ImageSharp; | |
using ImageSharp.Processing; | |
using SixLabors.Primitives; | |
using OpenTK.Graphics.OpenGL; | |
using Processing.OpenTk.Core.Extensions; | |
namespace Processing.OpenTk.Core.Textures | |
{ |
NewerOlder