Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.87 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. Exam
  3.         - Based on the orange book
  4.         - what do the names in, out, varying, uniform, in both fragment and vertex shader.
  5.         - what are uniform variables? - passed in from client code and does not change between vertices
  6.         - attribute keyword - a uniform that varies across vertices.
  7.         - Would you bring the current time in as a uniform or an attribute?
  8.        
  9.        
  10.         default attributes that you get
  11.                 - vertex position, colour, normal
  12.                
  13.         Vector of velocities? attribute!
  14.        
  15.         attributes are variables which come in on a per vertex basis
  16.        
  17.         whats the difference between sampler1D, sampler2D and sampler3D - a texture of X dimensions
  18.        
  19.         texture, textureGrad, -  all texture calls.
  20.        
  21.         reflect, - takes 2 args - incoming vector, the normal - returns back reflected vector  
  22.         refract  - takes angle of incidence, normal, ratio of the index of refraction - returns refracted vector