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
float D_GGX_Anisotropic(float at, float ab, float ToH, float BoH, float NoH) { | |
// Burley 2012, "Physically-Based Shading at Disney" | |
float a2 = at * ab; | |
vec3 d = vec3(ab * ToH, at * BoH, a2 * NoH); | |
return saturateMediump(a2 * sq(a2 / dot(d, d)) * (1.0 / PI)); | |
} | |
float V_SmithGGXCorrelated_Anisotropic(float at, float ab, float ToV, float BoV, | |
float ToL, float BoL, float NoV, float NoL) { | |
// Heitz 2014, "Understanding the Masking-Shadowing Function in Microfacet-Based BRDFs" |
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 | |
# -*- coding: utf-8 -*- | |
""" | |
Monkey Patch for tornado | |
""" | |
import cProfile as profile | |
from tornado.options import options | |
from tornado.web import HTTPError |
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
''' | |
redis_simple_chat.py | |
Written June 24, 2011 by Josiah Carlson | |
Released under the GNU GPL v2 | |
available: http://www.gnu.org/licenses/gpl-2.0.html | |
Other licenses may be available upon request. |
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
worker_processes 2; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} |