diff --git a/Project.toml b/Project.toml index d191746..6736740 100644 --- a/Project.toml +++ b/Project.toml @@ -16,7 +16,7 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" [compat] ColorTypes = "0.8, 0.9, 0.10, 0.11" FixedPointNumbers = "0.6, 0.7, 0.8" -GeometryBasics = "0.2, 0.3" +GeometryBasics = "0.4.1" Observables = "0.2, 0.3, 0.4" StaticArrays = "0.11, 0.12, 1.0" StructArrays = "0.3.0, 0.4, 0.5, 0.6" diff --git a/README.md b/README.md index 567e7b4..4aff018 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ import GeometryBasics struct WebGL <: ShaderAbstractions.AbstractContext end -m = GLNormalMesh(Sphere(Point3f0(0), 1f0)) +m = GLNormalMesh(Sphere(Point3f(0), 1f0)) mvao = VertexArray(m) instances = VertexArray(positions = rand(GeometryBasics.Point{3, Float32}, 100)) @@ -25,8 +25,8 @@ x = ShaderAbstractions.InstancedProgram( "void main(){}\n", "void main(){}\n", mvao, instances, - model = Mat4f0(I), - view = Mat4f0(I), - projection = Mat4f0(I), + model = Mat4f(I), + view = Mat4f(I), + projection = Mat4f(I), ) ``` diff --git a/test/runtests.jl b/test/runtests.jl index d1e480a..9551661 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -5,7 +5,7 @@ import GeometryBasics struct WebGL <: ShaderAbstractions.AbstractContext end -m = normal_mesh(Sphere(Point3f0(0), 1f0)) +m = normal_mesh(Sphere(Point3f(0), 1f0)) mvao = VertexArray(m) instances = VertexArray(positions = rand(Point{3, Float32}, 100)) @@ -15,9 +15,9 @@ x = ShaderAbstractions.InstancedProgram( "void main(){}\n", "void main(){}\n", mvao, instances, - model = Mat4f0(I), - view = Mat4f0(I), - projection = Mat4f0(I), + model = Mat4f(I), + view = Mat4f(I), + projection = Mat4f(I), ) @test x.program.fragment_source == read(joinpath(@__DIR__, "test.frag"), String)