Mihail Sergeev
Chaos Group Ltd.




























attribute vec3 aVertexPosition;
attribute vec4 aVertexColor;
// model-view matrix
uniform mat4 uMVMatrix;
// projection matrix
uniform mat4 uPMatrix;
varying vec4 vColor;
void main(void) {
gl_Position =
uPMatrix *
uMVMatrix *
vec4(aVertexPosition, 1.0);
vColor = aVertexColor;
}Vertex Shader
Fragment Shader
varying vec4 vColor;
void main(void) {
gl_FragColor = vColor;
}

















All of the above provided by the excellent ThreeStrap library.
Manually setting up "sky", shadow map and fog.
























TODO tasks hidden in github code ;)



Time for Q&A



cg2.chaosgroup.com
www.chaosgroup.com
cg2@chaosgroup.com



Contacts