Skip to content

Instantly share code, notes, and snippets.

@RdlP
Created December 15, 2016 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RdlP/5ffe6131c2a1d96ff1a69cfdc6b495ea to your computer and use it in GitHub Desktop.
Save RdlP/5ffe6131c2a1d96ff1a69cfdc6b495ea to your computer and use it in GitHub Desktop.
earthMaterial = new AL3D.BlinnMaterial({shininess : 128, diffuse : 0xFFAAAAAA, specular : 0xffffffff, shading : AL3D.PhongInterpolation, texture: './res/color-map.jpg', specularMap: './res/specular-map.jpg', normalMap: './res/normal-map1.jpg'});
earth = new AL3D.Mesh.createSphere({radius: 1, height : 2, material : earthMaterial});
earth.position = new ALMath.Vector3(0,0,-2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment