third_party: clean up unused fogleman-* packages

For #58534.

Change-Id: I4e54affc59eda65343b4ccd32aab6291c609f3dc
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/468559
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/third_party/fogleman-fauxgl/LICENSE b/third_party/fogleman-fauxgl/LICENSE
deleted file mode 100644
index e0d6be6..0000000
--- a/third_party/fogleman-fauxgl/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2017 Michael Fogleman
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/third_party/fogleman-fauxgl/README.md b/third_party/fogleman-fauxgl/README.md
deleted file mode 100644
index 46e5991..0000000
--- a/third_party/fogleman-fauxgl/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# fogleman-fauxgl
-
-The code is a modified version of the `animate.go` example included in the
-[FauxGL upstream repository](https://github.com/fogleman/fauxgl). Thus, it
-retains the MIT license originally associated with that code.
diff --git a/third_party/fogleman-fauxgl/animate.go b/third_party/fogleman-fauxgl/animate.go
deleted file mode 100644
index 534079b..0000000
--- a/third_party/fogleman-fauxgl/animate.go
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (C) 2017 Michael Fogleman.
-// Copyright 2021 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package animatebench
-
-import (
-	"flag"
-	"image"
-
-	. "github.com/fogleman/fauxgl"
-	"github.com/nfnt/resize"
-)
-
-const (
-	scale  = 4   // optional supersampling
-	width  = 800 // output width in pixels
-	height = 800 // output height in pixels
-	fovy   = 30  // vertical field of view in degrees
-	near   = 1   // near clipping plane
-	far    = 10  // far clipping plane
-)
-
-var (
-	eye        = V(4, 4, 2)                  // camera position
-	center     = V(0, 0, 0)                  // view center position
-	up         = V(0, 0, 1)                  // up vector
-	light      = V(0.25, 0.5, 1).Normalize() // light direction
-	color      = HexColor("#FEB41C")         // object color
-	background = HexColor("#24221F")         // background color
-)
-
-type RotateAnimation struct {
-	mesh    *Mesh
-	matrix  Matrix
-	context *Context
-}
-
-func Load(meshPath string) (*RotateAnimation, error) {
-	// load a mesh
-	mesh, err := LoadSTL(flag.Arg(0))
-	if err != nil {
-		return nil, err
-	}
-
-	// fit mesh in a bi-unit cube centered at the origin
-	mesh.BiUnitCube()
-
-	// create transformation matrix and light direction
-	aspect := float64(width) / float64(height)
-	matrix := LookAt(eye, center, up).Perspective(fovy, aspect, near, far)
-
-	return &RotateAnimation{
-		mesh:    mesh,
-		matrix:  matrix,
-		context: NewContext(width*scale, height*scale),
-	}, nil
-}
-
-// RenderNext renders the next step in the animation, returning the resulting
-// image. Each step rotates the input mesh by 5 degrees.
-func (a *RotateAnimation) RenderNext() image.Image {
-	// render
-	a.context.ClearDepthBuffer()
-	a.context.ClearColorBufferWith(background)
-	shader := NewPhongShader(a.matrix, light, eye)
-	shader.ObjectColor = color
-	shader.DiffuseColor = Gray(0.9)
-	shader.SpecularColor = Gray(0.25)
-	shader.SpecularPower = 100
-	a.context.Shader = shader
-	a.context.DrawMesh(a.mesh)
-
-	// resize image for anti-aliasing
-	image := a.context.Image()
-	image = resize.Resize(width, height, image, resize.Bilinear)
-
-	a.mesh.Transform(Rotate(up, Radians(5)))
-
-	return image
-}
diff --git a/third_party/fogleman-pt/LICENSE b/third_party/fogleman-pt/LICENSE
deleted file mode 100644
index c8fe382..0000000
--- a/third_party/fogleman-pt/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2015 Michael Fogleman
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/third_party/fogleman-pt/README.md b/third_party/fogleman-pt/README.md
deleted file mode 100644
index 34c7ff3..0000000
--- a/third_party/fogleman-pt/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# fogleman-fauxgl
-
-The code is a modified version of the `gopher.go` example included in the
-[pt upstream repository](https://github.com/fogleman/pt). Thus, it retains the
-MIT license originally associated with that code.
diff --git a/third_party/fogleman-pt/gopher.go b/third_party/fogleman-pt/gopher.go
deleted file mode 100644
index 8412dff..0000000
--- a/third_party/fogleman-pt/gopher.go
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (C) 2015 Michael Fogleman.
-// Copyright 2021 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package ptbench
-
-import (
-	"image"
-
-	"github.com/fogleman/pt/pt"
-)
-
-type Gopher struct {
-	mesh *pt.Mesh
-}
-
-func Load(meshPath string) (*Gopher, error) {
-	gopher := pt.GlossyMaterial(pt.Black, 1.2, pt.Radians(30))
-	mesh, err := pt.LoadOBJ(meshPath, gopher)
-	if err != nil {
-		return nil, err
-	}
-	return &Gopher{
-		mesh: mesh,
-	}, nil
-}
-
-func (g *Gopher) Render(iter int) image.Image {
-	scene := pt.Scene{}
-
-	// create materials
-	wall := pt.GlossyMaterial(pt.HexColor(0xFCFAE1), 1.5, pt.Radians(10))
-	light := pt.LightMaterial(pt.White, 80)
-
-	// add walls and lights
-	scene.Add(pt.NewCube(pt.V(-10, -1, -10), pt.V(-2, 10, 10), wall))
-	scene.Add(pt.NewCube(pt.V(-10, -1, -10), pt.V(10, 0, 10), wall))
-	scene.Add(pt.NewSphere(pt.V(4, 10, 1), 1, light))
-
-	g.mesh.Transform(pt.Rotate(pt.V(0, 1, 0), pt.Radians(-10)))
-	g.mesh.SmoothNormals()
-	g.mesh.FitInside(pt.Box{pt.V(-1, 0, -1), pt.V(1, 2, 1)}, pt.V(0.5, 0, 0.5))
-	scene.Add(g.mesh)
-
-	// position camera
-	camera := pt.LookAt(pt.V(4, 1, 0), pt.V(0, 0.9, 0), pt.V(0, 1, 0), 40)
-
-	// render the scene
-	sampler := pt.NewSampler(16, 16)
-	renderer := pt.NewRenderer(&scene, &camera, sampler, 1024, 1024)
-	renderer.Verbose = false
-
-	// perform iter iterations of rendering
-	for j := 0; j < iter; j++ {
-		renderer.Render()
-	}
-	return renderer.Buffer.Image(pt.ColorChannel)
-}