-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,196 additions
and
966 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
![](docs/eqs/phong.png) | ||
|
||
$$K_R I_R + K_T I_T + \sum_L \big( K_A I_{AL} + \big[ K_D I_L ( N \cdot L ) + K_S I_L ( V \cdot R )^n \big] \big)$$ | ||
|
||
|
||
![](docs/eqs/cel.png) | ||
|
||
$$F = \sum_L \big( I_{AL} + \big[ I_L ( N \cdot L ) + I_L ( V \cdot R )^n \big] \big)$$ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": 16, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": -1, | ||
|
||
"shaders": { | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"PipelineGUI": "SimpleScene" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"PipelineGUI": "GLGUI", | ||
"PipelineGUI": "FancyScene", | ||
"TimerMilliseconds": 16, | ||
|
||
"shaders": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#include "dialogs.h" | ||
|
||
#include <iostream> | ||
|
||
// Consider: | ||
// https://stackoverflow.com/questions/6145910/cross-platform-native-open-save-file-dialogs | ||
// https://github.com/AndrewBelt/osdialog | ||
// https://github.com/mlabbe/nativefiledialog | ||
|
||
namespace graphics101 { | ||
|
||
std::string loadFileDialog( const std::string& message, const std::string& start_dir, const std::string& filter ) { | ||
std::cerr << message << '\n'; | ||
std::cerr << "Type a " << filter << " filename to load relative to the following path: " << start_dir << '\n'; | ||
std::string path; | ||
std::getline( std::cin, path ); | ||
if( !path.empty() && path.back() == '\n' ) { | ||
path = path.substr( 0, path.size()-1 ); | ||
} | ||
return path; | ||
} | ||
|
||
std::string saveFileDialog( const std::string& message, const std::string& start_dir, const std::string& filter ) { | ||
std::cerr << message << '\n'; | ||
std::cerr << "Type a " << filter << " filename to save relative to the following path: " << start_dir << '\n'; | ||
std::string path; | ||
std::getline( std::cin, path ); | ||
if( !path.empty() && path.back() == '\n' ) { | ||
path = path.substr( 0, path.size()-1 ); | ||
} | ||
return path; | ||
} | ||
|
||
void errorDialog( const std::string& title, const std::string& message ) { | ||
std::cerr << "ERROR: " << title << ": " << message << '\n'; | ||
} | ||
|
||
} |
Oops, something went wrong.