Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. pass_1: {
  2. uniforms: {
  3. view: camera.view
  4. projection: camera.projection
  5. }
  6. id_tex: {
  7. format: GL_R8UI
  8. size: {width, height}
  9. }
  10. depth_tex: {
  11. format: GL_DEPTH_COMPONENT24
  12. size: {width, height}
  13. }
  14. target: {
  15. attachments: [
  16. {
  17. texture: id_tex
  18. attachment: GL_COLOR_ATTACHMENT0
  19. drawbuffer: GL_COLOR_ATTACHMENT0
  20. }
  21. {
  22. texture: depth_tex
  23. attachment: GL_DEPTH_ATTACHMENT
  24. drawbuffer: GL_NONE
  25. }
  26. ]
  27. }
  28. shader: {
  29. vertex: "stencil.vert"
  30. fragment: "stencil.frag"
  31. }
  32. }
  33.  
  34. pass_2: {
  35. uniforms: {
  36. view: camera.view
  37. projection: camera.projection
  38. id_map: pass_1.id_tex
  39. depth_map: pass_1.depth_tex
  40. }
  41. target: default
  42. shader: {
  43. vertex: "solid.vert"
  44. fragment: "solid.frag"
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement