Skip to content

Commit

Permalink
Idk
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Mar 1, 2024
1 parent bb85505 commit ec1092d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1723,9 +1723,10 @@
;; ssao,lisp
(:export
#:ssao-pass
#:position-map
#:normal-map
#:occlusion)
#:depth-map
#:occlusion
#:radius
#:bias)
;; static-vector.lisp
(:export
#:make-static-vector
Expand Down
7 changes: 7 additions & 0 deletions renderer/ssao.lisp
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
(in-package #:org.shirakumo.fraf.trial)

(define-shader-pass z-prepass (per-object-pass)
((depth :port-type output :attachment :depth-attachment :texspec (:internal-format :depth-component)))
(:buffers (trial standard-environment-information)))

(defmethod compute-shader ((type (eql :fragment-shader)) (pass z-prepass) object)
(load-time-value (list (glsl-toolkit:parse "void main(){}"))))

(defun generate-ssao-noise (&optional (samples 16))
(let ((array (make-array (* samples 3) :element-type 'single-float)))
(dotimes (i samples array)
Expand Down

0 comments on commit ec1092d

Please sign in to comment.