Skip to content

Commit

Permalink
treat EmptyCamera as :clip
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Jan 14, 2025
1 parent 8343fe9 commit 2422afc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/camera/camera2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ struct UpdatePixelCam
near::Float64
far::Float64
end
get_space(::UpdatePixelCam) = :pixel

function (cam::UpdatePixelCam)(window_size)
w, h = Float64.(widths(window_size))
Expand Down
1 change: 1 addition & 0 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ abstract type AbstractAxis <: Block end

# placeholder if no camera is present
struct EmptyCamera <: AbstractCamera end
get_space(::EmptyCamera) = :clip

@enum RaymarchAlgorithm begin
IsoValue # 0
Expand Down

0 comments on commit 2422afc

Please sign in to comment.