├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.md ├── conanfile.py ├── data └── stars.txt ├── inpirations └── earth_from_moon.jpg ├── pbr ├── Animator.cpp ├── Animator.h ├── Axis.cpp ├── Axis.h ├── Camera.cpp ├── Camera.h ├── Drawable.cpp ├── Drawable.h ├── Earth.cpp ├── Earth.h ├── Geometry.h ├── Light.cpp ├── Light.h ├── LinesGeometry.cpp ├── LinesGeometry.h ├── LinesMaterial.cpp ├── LinesMaterial.h ├── Material.cpp ├── Material.h ├── MaterialParams.h ├── Mesh.cpp ├── Mesh.h ├── Moon.cpp ├── Moon.h ├── PhongMaterial.cpp ├── PhongMaterial.h ├── Scene.cpp ├── Scene.h ├── Shader.cpp ├── Shader.h ├── Sphere.cpp ├── Sphere.h ├── SphereMesh.cpp ├── SphereMesh.h ├── Timer.cpp ├── Timer.h ├── Transform.cpp ├── Transform.h └── main.cpp ├── shaders ├── bumpmap_frag.glsl ├── bumpmap_vert.glsl ├── clouds_frag.glsl ├── clouds_vert.glsl ├── fragment.glsl ├── fragment_texture.glsl ├── ground_frag.glsl ├── ground_vert.glsl ├── lines_frag.glsl ├── lines_vert.glsl ├── phong_frag.glsl ├── phong_pbr_frag.glsl ├── phong_pbr_vert.glsl ├── phong_vert.glsl ├── sky_frag.glsl ├── sky_vert.glsl ├── skybox_frag.glsl ├── skybox_vert.glsl ├── space_frag.glsl ├── space_vert.glsl ├── stars_frag.glsl ├── stars_vert.glsl ├── vertex.glsl └── vertex_texture.glsl └── textures ├── abstract_back.jpg ├── abstract_bottom.jpg ├── abstract_front.jpg ├── abstract_left.jpg ├── abstract_right.jpg ├── earth_2k.jpg ├── earth_8k.jpg ├── earth_clouds_2k.jpg ├── earth_clouds_8k.jpg ├── earth_night_2k.jpg ├── earth_night_8k.jpg ├── earth_ocean_color_2k.jpg ├── earth_ocean_color_8k.jpg ├── moon_2k.jpg ├── moon_4k.jpg ├── moon_bump_2k.jpg ├── ocean_mask_2k.jpg ├── ocean_mask_8k.jpg ├── topography_2k.jpg └── topography_8k.jpg /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/README.md -------------------------------------------------------------------------------- /conanfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/conanfile.py -------------------------------------------------------------------------------- /data/stars.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/data/stars.txt -------------------------------------------------------------------------------- /inpirations/earth_from_moon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/inpirations/earth_from_moon.jpg -------------------------------------------------------------------------------- /pbr/Animator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Animator.cpp -------------------------------------------------------------------------------- /pbr/Animator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Animator.h -------------------------------------------------------------------------------- /pbr/Axis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Axis.cpp -------------------------------------------------------------------------------- /pbr/Axis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Axis.h -------------------------------------------------------------------------------- /pbr/Camera.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Camera.cpp -------------------------------------------------------------------------------- /pbr/Camera.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Camera.h -------------------------------------------------------------------------------- /pbr/Drawable.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Drawable.cpp -------------------------------------------------------------------------------- /pbr/Drawable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Drawable.h -------------------------------------------------------------------------------- /pbr/Earth.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Earth.cpp -------------------------------------------------------------------------------- /pbr/Earth.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Earth.h -------------------------------------------------------------------------------- /pbr/Geometry.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Geometry 4 | { 5 | public: 6 | virtual void draw() = 0; 7 | }; -------------------------------------------------------------------------------- /pbr/Light.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Light.cpp -------------------------------------------------------------------------------- /pbr/Light.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Light.h -------------------------------------------------------------------------------- /pbr/LinesGeometry.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/LinesGeometry.cpp -------------------------------------------------------------------------------- /pbr/LinesGeometry.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/LinesGeometry.h -------------------------------------------------------------------------------- /pbr/LinesMaterial.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/LinesMaterial.cpp -------------------------------------------------------------------------------- /pbr/LinesMaterial.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/LinesMaterial.h -------------------------------------------------------------------------------- /pbr/Material.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Material.cpp -------------------------------------------------------------------------------- /pbr/Material.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Material.h -------------------------------------------------------------------------------- /pbr/MaterialParams.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/MaterialParams.h -------------------------------------------------------------------------------- /pbr/Mesh.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Mesh.cpp -------------------------------------------------------------------------------- /pbr/Mesh.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Mesh.h -------------------------------------------------------------------------------- /pbr/Moon.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Moon.cpp -------------------------------------------------------------------------------- /pbr/Moon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Moon.h -------------------------------------------------------------------------------- /pbr/PhongMaterial.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/PhongMaterial.cpp -------------------------------------------------------------------------------- /pbr/PhongMaterial.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/PhongMaterial.h -------------------------------------------------------------------------------- /pbr/Scene.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Scene.cpp -------------------------------------------------------------------------------- /pbr/Scene.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Scene.h -------------------------------------------------------------------------------- /pbr/Shader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Shader.cpp -------------------------------------------------------------------------------- /pbr/Shader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Shader.h -------------------------------------------------------------------------------- /pbr/Sphere.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Sphere.cpp -------------------------------------------------------------------------------- /pbr/Sphere.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Sphere.h -------------------------------------------------------------------------------- /pbr/SphereMesh.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/SphereMesh.cpp -------------------------------------------------------------------------------- /pbr/SphereMesh.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/SphereMesh.h -------------------------------------------------------------------------------- /pbr/Timer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Timer.cpp -------------------------------------------------------------------------------- /pbr/Timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Timer.h -------------------------------------------------------------------------------- /pbr/Transform.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Transform.cpp -------------------------------------------------------------------------------- /pbr/Transform.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/Transform.h -------------------------------------------------------------------------------- /pbr/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/pbr/main.cpp -------------------------------------------------------------------------------- /shaders/bumpmap_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/bumpmap_frag.glsl -------------------------------------------------------------------------------- /shaders/bumpmap_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/bumpmap_vert.glsl -------------------------------------------------------------------------------- /shaders/clouds_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/clouds_frag.glsl -------------------------------------------------------------------------------- /shaders/clouds_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/clouds_vert.glsl -------------------------------------------------------------------------------- /shaders/fragment.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/fragment.glsl -------------------------------------------------------------------------------- /shaders/fragment_texture.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/fragment_texture.glsl -------------------------------------------------------------------------------- /shaders/ground_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/ground_frag.glsl -------------------------------------------------------------------------------- /shaders/ground_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/ground_vert.glsl -------------------------------------------------------------------------------- /shaders/lines_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/lines_frag.glsl -------------------------------------------------------------------------------- /shaders/lines_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/lines_vert.glsl -------------------------------------------------------------------------------- /shaders/phong_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/phong_frag.glsl -------------------------------------------------------------------------------- /shaders/phong_pbr_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/phong_pbr_frag.glsl -------------------------------------------------------------------------------- /shaders/phong_pbr_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/phong_pbr_vert.glsl -------------------------------------------------------------------------------- /shaders/phong_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/phong_vert.glsl -------------------------------------------------------------------------------- /shaders/sky_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/sky_frag.glsl -------------------------------------------------------------------------------- /shaders/sky_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/sky_vert.glsl -------------------------------------------------------------------------------- /shaders/skybox_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/skybox_frag.glsl -------------------------------------------------------------------------------- /shaders/skybox_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/skybox_vert.glsl -------------------------------------------------------------------------------- /shaders/space_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/space_frag.glsl -------------------------------------------------------------------------------- /shaders/space_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/space_vert.glsl -------------------------------------------------------------------------------- /shaders/stars_frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/stars_frag.glsl -------------------------------------------------------------------------------- /shaders/stars_vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/stars_vert.glsl -------------------------------------------------------------------------------- /shaders/vertex.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/vertex.glsl -------------------------------------------------------------------------------- /shaders/vertex_texture.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/shaders/vertex_texture.glsl -------------------------------------------------------------------------------- /textures/abstract_back.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/abstract_back.jpg -------------------------------------------------------------------------------- /textures/abstract_bottom.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/abstract_bottom.jpg -------------------------------------------------------------------------------- /textures/abstract_front.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/abstract_front.jpg -------------------------------------------------------------------------------- /textures/abstract_left.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/abstract_left.jpg -------------------------------------------------------------------------------- /textures/abstract_right.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/abstract_right.jpg -------------------------------------------------------------------------------- /textures/earth_2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/earth_2k.jpg -------------------------------------------------------------------------------- /textures/earth_8k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/earth_8k.jpg -------------------------------------------------------------------------------- /textures/earth_clouds_2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/earth_clouds_2k.jpg -------------------------------------------------------------------------------- /textures/earth_clouds_8k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/earth_clouds_8k.jpg -------------------------------------------------------------------------------- /textures/earth_night_2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/earth_night_2k.jpg -------------------------------------------------------------------------------- /textures/earth_night_8k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/earth_night_8k.jpg -------------------------------------------------------------------------------- /textures/earth_ocean_color_2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/earth_ocean_color_2k.jpg -------------------------------------------------------------------------------- /textures/earth_ocean_color_8k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/earth_ocean_color_8k.jpg -------------------------------------------------------------------------------- /textures/moon_2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/moon_2k.jpg -------------------------------------------------------------------------------- /textures/moon_4k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/moon_4k.jpg -------------------------------------------------------------------------------- /textures/moon_bump_2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/moon_bump_2k.jpg -------------------------------------------------------------------------------- /textures/ocean_mask_2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/ocean_mask_2k.jpg -------------------------------------------------------------------------------- /textures/ocean_mask_8k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/ocean_mask_8k.jpg -------------------------------------------------------------------------------- /textures/topography_2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/topography_2k.jpg -------------------------------------------------------------------------------- /textures/topography_8k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcleary/pbr/HEAD/textures/topography_8k.jpg --------------------------------------------------------------------------------