Advertisement
Guest User

spout_shader

a guest
Feb 23rd, 2017
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. ### Teapot Spout ###
  2. AttributeBegin
  3. Translate 0 -.5 .37
  4. Scale 1.1 1.1 1.1
  5. Rotate -12 1 0 0
  6. AttributeBegin
  7. ### Presence Map for Spout Tip ###
  8. ReadArchive "materials/spoutpresence.rib"
  9. Translate 0 2.65 2.1
  10. Scale 1.4 1.3 1.1
  11. Skew 28.0 0 0 1 0 1 0
  12. Rotate 270 0 0 1
  13. ### Spout Sin Wave ###
  14. ReadArchive "materials/spout_bump.rib"
  15. Hyperboloid 0.5 0 0 0.10 0 1.5 360
  16. AttributeEnd
  17.  
  18. #### Assigning a oso material to make a sine "ramp" to make the spout curve inward. ###
  19.  
  20. AttributeBegin
  21. ###InnerSpoutPresenceMap###
  22. ReadArchive "materials/innerspout.rib"
  23. Translate 0 2.55 2.1
  24. Scale 1.1 1.0 1.1
  25. Skew 37.0 0 0 1 0 1 0
  26. Rotate 270 0 0 1
  27. ### Spout Sin Wave ###
  28. ReadArchive "materials/spout_bump.rib"
  29. Hyperboloid 0.5 0 0 0.10 0 1.5 360
  30. AttributeEnd
  31. ### TIP ###
  32. AttributeBegin
  33. ReadArchive "materials/teapotgold.rib"
  34. Translate 0 3.52 3.49
  35. Rotate -70 1 0 0
  36. # Rotate 90 1 0 0
  37. # Scale 1 1 1
  38. #Skew .10 0 0 0 0 0 0
  39. Torus .25 0.035 0 360 360
  40. AttributeEnd
  41.  
  42. AttributeEnd
  43. #AttributeBegin
  44. # ReadArchive "materials/spoutpresence.rib"
  45. # Translate 0 3 1.4
  46. # Rotate -30 1 0 0
  47. # Rotate -90 0 0 1
  48. # Scale .15 .15 .15
  49. # Cylinder 1 0 15 360
  50. #AttributeEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement