Permalink
Browse files

Make things bakable that should've been bakable all along.

  • Loading branch information...
Shinmera committed Dec 5, 2017
1 parent 5be1deb commit 2e71e97e44fb0db374b8928c4df2ea56fc4cd675
Showing with 7 additions and 3 deletions.
  1. +5 −1 pipelined-scene.lisp
  2. +1 −1 selection-buffer.lisp
  3. +1 −1 shader-pass.lisp
View
@@ -6,12 +6,16 @@
(in-package #:org.shirakumo.fraf.trial)
(defclass pipelined-scene (scene pipeline)
(defclass pipelined-scene (scene pipeline bakable)
())
(defmethod paint ((scene pipelined-scene) target)
(paint-with scene scene))
(defmethod paint ((scene pipelined-scene) (target shader-pass))
(for:for ((element over scene))
(paint-with target element)))
(defmethod enter :after ((entity entity) (scene pipelined-scene))
(register-object-for-pass scene entity))
View
@@ -33,7 +33,7 @@
(setf (ldb (byte 8 24) id) (aref color 0))
id))))
(defclass selection-buffer (render-texture)
(defclass selection-buffer (render-texture bakable)
((scene :initarg :scene :accessor scene)
(color->object-map :initform (make-hash-table :test 'eql) :accessor color->object-map))
(:default-initargs
View
@@ -194,7 +194,7 @@
(prepare-pass-program pass program)
(call-next-method)))
(define-shader-pass multisampled-pass ()
(define-shader-pass multisampled-pass (bakable)
((multisample-fbo :initform NIL :accessor multisample-fbo)
(samples :initarg :samples :accessor samples))
(:default-initargs :samples 8))

0 comments on commit 2e71e97

Please sign in to comment.