Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Update for GLMakie#107 #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion examples/interactive.jl
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,10 @@ end
RecordEvents(scene, @replace_with_a_path)
end

@cell "Ambient Occlusion" [SSAO, shading, interaction] begin
@cell "Ambient Occlusion" [SSAO, ssao, shading, interaction] begin
using GLMakie
GLMakie.enable_SSAO[] = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should best be an AbstractPlotting option, since WGLMakie will also support SSAO!


# SSAO (Screen Space Ambient Occlusion) has a couple of per-scene
# attributes.
# - `radius` sets the range of SSAO. You may want to scale this up or
Expand All @@ -752,6 +755,7 @@ end
# washed out by blurring. Small `blur` will be faster, sharper and
# more patterned. Large `blur` will be slower and smoother. Typically
# `blur = 2` is a good compromise.

s1, radius = textslider(0.0f0:0.1f0:2f0, "Radius", start = 0.2f0)
s2, bias = textslider(0f0:0.005f0:0.1f0, "Bias", start = 0.015f0)
s3, blur = textslider(Int32(0):Int32(1):Int32(5), "Blur", start = Int32(2))
Expand Down