Skip to content

Instantly share code, notes, and snippets.

View aboutqx's full-sized avatar
🌴
On vacation

aboutqx aboutqx

🌴
On vacation
View GitHub Profile
@aboutqx
aboutqx / pbr.glsl
Created January 18, 2017 08:31 — forked from galek/pbr.glsl
PBR GLSL SHADER
in vec2 v_texcoord; // texture coords
in vec3 v_normal; // normal
in vec3 v_binormal; // binormal (for TBN basis calc)
in vec3 v_pos; // pixel view space position
out vec4 color;
layout(std140) uniform Transforms
{
mat4x4 world_matrix; // object's world position
package com.learnopengles.android.lesson9;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;
@aboutqx
aboutqx / bloop.js
Last active August 29, 2015 14:15 — forked from jlongster/bloop.js
(function() {
// Do not use this library. This is just a fun example to prove a
// point.
var Bloop = window.Bloop = {};
var mountId = 0;
function newMountId() {
return mountId++;
}