This commit is contained in:
Ben
2019-02-20 21:40:49 +00:00
parent 074743056e
commit 739e8366a5
2 changed files with 11 additions and 3 deletions

View File

@@ -1 +1,9 @@
# SMH Engine
This is the SMH engine, it's aim is to display various modern real-time rendering techniques commonly used in the videogame industry using OpenGL.
![alt text](https://i.imgur.com/q5days1.png, "Latest Screenshot")
## Dependancies
- SDL2

View File

@@ -13,8 +13,8 @@ uniform sampler2D shadowMap;
vec3 viewPos = vec3(0.0, 0.0, 0.0);
vec3 objectColour = vec3(1.0, 1.0, 1.0);
vec3 lightColour = vec3(1.0, 1.0, 1.0);
// vec3 lightColour = vec3(0.1, 0.45, 0.9);
vec3 lightColour = vec3(0.65, 0.65, 0.65);
// vec3 lightColour = vec3(0.3, 0.85, 1.0);
float calculateShadow(vec4 fragPosLightSpace) {
vec3 projCoords = fragPosLightSpace.xyz / fragPosLightSpace.w;
@@ -34,7 +34,7 @@ void main() {
vec3 diffuse = diff * lightColour;
float specularStrength = 0.2;
float specularStrength = 0.1;
vec3 viewDir = normalize(viewPos - FragPos);
vec3 reflectDir = reflect(-lightDir, normal);