Skip to content

Instantly share code, notes, and snippets.

@timrwood
Last active December 10, 2015 20:08
Show Gist options
  • Save timrwood/4485790 to your computer and use it in GitHub Desktop.
Save timrwood/4485790 to your computer and use it in GitHub Desktop.
Shader enums
enum Ambient
Uniform
Vertex
Texture
enum Diffuse
None
Uniform
enum Normals
Vertex
TextureMap
enum Specular
None
Uniform
Texture
TextureAlpha
enum Reflection
None
Texture
// used for diffuse, normal, and specular map
string textureName
string reflectionTextureName
vec4 ambientColor
vec4 diffuseColor
float diffuseIntensity
vec4 specularColor
float specularIntensity
float reflectionIntensity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment