Skip to content

Instantly share code, notes, and snippets.

View bhouston's full-sized avatar

Ben Houston bhouston

View GitHub Profile
Error #1:
(unknown): Unable to get value of the property 'toUpperCase': object is null or undefined
Location: https://cdn.webglstats.com/stat.js line 8
Browser: IE 9.0
OS: Windows Vista
Error #2:
(unknown): Error loading script
class OStream::PrivateData
{
private:
char filestreamBuffer[STREAM_BUF_SIZE];
public:
PrivateData(const std::string & iFileName) :
stream(NULL), fileName(iFileName), startPos(0)
{
@bhouston
bhouston / normalmap.fragment.glsl
Created January 7, 2014 17:35
Partially refractored normalmap.fragment.glsl
uniform vec3 ambient;
uniform vec3 diffuse;
uniform vec3 specular;
uniform float shininess;
uniform float opacity;
uniform bool enableDiffuse;
uniform bool enableSpecular;
uniform bool enableAO;
uniform bool enableReflection;
uniform sampler2D tDiffuse;
@bhouston
bhouston / common.glsl
Created January 7, 2014 17:34
Common.glsl so far
vec4 inputGamma( const in vec4 input_rgba ) {
#ifdef GAMMA_INPUT
vec4 output_rgba = input_rgba;
output_rgba.xyz * output_rgba.xyz;
return output_rgba;
#else
return input_rgba;
#endif
@bhouston
bhouston / normalmap.fragment.glsl
Last active June 3, 2020 11:37
Original normalmap fragment shader - auto-formatted
uniform vec3 ambient;
uniform vec3 diffuse;
uniform vec3 specular;
uniform float shininess;
uniform float opacity;
uniform bool enableDiffuse;
uniform bool enableSpecular;
uniform bool enableAO;
uniform bool enableReflection;
uniform sampler2D tDiffuse;