Guest User

Untitled

a guest
Dec 13th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. (let ((shader-program (slot-value
  2. (slot-value
  3. (fl.core::compiled-shaders
  4. (shaders (core-state context)))
  5. 'kit.gl.shader::active-program)
  6. 'kit.gl.shader::id)))
  7. (format t "shader program: ~A~%" shader-program)
  8.  
  9. (format t "pos location: ~A enabled: ~A~%"
  10. (gl:get-attrib-location shader-program "pos")
  11. (gl::get-vertex-attrib-integer 0 :vertex-attrib-array-enabled))
  12. (format t "normal location: ~A enabled: ~A~%"
  13. (gl:get-attrib-location shader-program "normal")
  14. (gl::get-vertex-attrib-integer 1 :vertex-attrib-array-enabled))
  15. (format t "tangent location: ~A enabled: ~A~%"
  16. (gl:get-attrib-location shader-program "tangent")
  17. (gl::get-vertex-attrib-integer 2 :vertex-attrib-array-enabled))
  18. (format t "color location: ~A enabled: ~A~%"
  19. (gl:get-attrib-location shader-program "color")
  20. (gl::get-vertex-attrib-integer 3 :vertex-attrib-array-enabled))
  21. (format t "uv1 location: ~A enabled: ~A~%"
  22. (gl:get-attrib-location shader-program "uv1")
  23. (gl::get-vertex-attrib-integer 4 :vertex-attrib-array-enabled))
  24. (format t "uv2 location: ~A enabled: ~A~%"
  25. (gl:get-attrib-location shader-program "uv2")
  26. (gl::get-vertex-attrib-integer 5 :vertex-attrib-array-enabled))
  27. (format t "joints location: ~A enabled: ~A~%"
  28. (gl:get-attrib-location shader-program "joints")
  29. (gl::get-vertex-attrib-integer 6 :vertex-attrib-array-enabled))
  30. (format t "weights location: ~A enabled: ~A~%"
  31. (gl:get-attrib-location shader-program "weights")
  32. (gl::get-vertex-attrib-integer 7 :vertex-attrib-array-enabled)))
Add Comment
Please, Sign In to add comment