├── .github └── workflows │ └── haskell.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── app ├── Aabb.hs ├── Axis.hs ├── Bvh.hs ├── Camera.hs ├── FoldHittable.hs ├── HitRecord.hs ├── Hittable.hs ├── HittableList.hs ├── Interval.hs ├── Lib.hs ├── Main.hs ├── Material.hs ├── Materials │ ├── Dielectric.hs │ ├── DiffuseLight.hs │ ├── Lambertian.hs │ └── Metal.hs ├── Object.hs ├── Optics.hs ├── Random.hs ├── Ray.hs ├── Scene.hs ├── Shapes │ ├── Ellipse.hs │ ├── Primitive2D.hs │ ├── Quad.hs │ ├── Sphere.hs │ └── Tri.hs ├── Texture.hs ├── Textures │ ├── Checker.hs │ ├── Image.hs │ ├── Perlin.hs │ └── SolidColor.hs └── Vec3.hs ├── assets └── earthmap.jpg ├── haskell-raytracing.cabal ├── readme.md └── test.jpg /.github/workflows/haskell.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/.github/workflows/haskell.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist-newstyle 2 | .vscode 3 | test-results -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/LICENSE -------------------------------------------------------------------------------- /app/Aabb.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Aabb.hs -------------------------------------------------------------------------------- /app/Axis.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Axis.hs -------------------------------------------------------------------------------- /app/Bvh.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Bvh.hs -------------------------------------------------------------------------------- /app/Camera.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Camera.hs -------------------------------------------------------------------------------- /app/FoldHittable.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/FoldHittable.hs -------------------------------------------------------------------------------- /app/HitRecord.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/HitRecord.hs -------------------------------------------------------------------------------- /app/Hittable.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Hittable.hs -------------------------------------------------------------------------------- /app/HittableList.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/HittableList.hs -------------------------------------------------------------------------------- /app/Interval.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Interval.hs -------------------------------------------------------------------------------- /app/Lib.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Lib.hs -------------------------------------------------------------------------------- /app/Main.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Main.hs -------------------------------------------------------------------------------- /app/Material.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Material.hs -------------------------------------------------------------------------------- /app/Materials/Dielectric.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Materials/Dielectric.hs -------------------------------------------------------------------------------- /app/Materials/DiffuseLight.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Materials/DiffuseLight.hs -------------------------------------------------------------------------------- /app/Materials/Lambertian.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Materials/Lambertian.hs -------------------------------------------------------------------------------- /app/Materials/Metal.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Materials/Metal.hs -------------------------------------------------------------------------------- /app/Object.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Object.hs -------------------------------------------------------------------------------- /app/Optics.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Optics.hs -------------------------------------------------------------------------------- /app/Random.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Random.hs -------------------------------------------------------------------------------- /app/Ray.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Ray.hs -------------------------------------------------------------------------------- /app/Scene.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Scene.hs -------------------------------------------------------------------------------- /app/Shapes/Ellipse.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Shapes/Ellipse.hs -------------------------------------------------------------------------------- /app/Shapes/Primitive2D.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Shapes/Primitive2D.hs -------------------------------------------------------------------------------- /app/Shapes/Quad.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Shapes/Quad.hs -------------------------------------------------------------------------------- /app/Shapes/Sphere.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Shapes/Sphere.hs -------------------------------------------------------------------------------- /app/Shapes/Tri.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Shapes/Tri.hs -------------------------------------------------------------------------------- /app/Texture.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Texture.hs -------------------------------------------------------------------------------- /app/Textures/Checker.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Textures/Checker.hs -------------------------------------------------------------------------------- /app/Textures/Image.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Textures/Image.hs -------------------------------------------------------------------------------- /app/Textures/Perlin.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Textures/Perlin.hs -------------------------------------------------------------------------------- /app/Textures/SolidColor.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Textures/SolidColor.hs -------------------------------------------------------------------------------- /app/Vec3.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/app/Vec3.hs -------------------------------------------------------------------------------- /assets/earthmap.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/assets/earthmap.jpg -------------------------------------------------------------------------------- /haskell-raytracing.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/haskell-raytracing.cabal -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/readme.md -------------------------------------------------------------------------------- /test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Slowyn/haskell-raytracing/HEAD/test.jpg --------------------------------------------------------------------------------