Skip to content

Commit

Permalink
use 'straight' camera and increased ambient light
Browse files Browse the repository at this point in the history
  • Loading branch information
bwasty committed Feb 22, 2018
1 parent 7eade6d commit 56604b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl PbrShader {
shader.set_vec3(uniforms.u_LightDirection, 0.0, 0.5, 0.5);

shader.set_vec3(uniforms.u_AmbientLightColor, 1.0, 1.0, 1.0);
shader.set_float(uniforms.u_AmbientLightIntensity, 0.2);
shader.set_float(uniforms.u_AmbientLightIntensity, 0.8);

uniforms
};
Expand Down
2 changes: 1 addition & 1 deletion src/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl GltfViewer {
}
} else {
info!("Determining camera view from bounding box");
viewer.set_camera_from_bounds(false);
viewer.set_camera_from_bounds(true);

if let Some(p) = camera_options.position {
viewer.orbit_controls.position = Point3::from_vec(p)
Expand Down

0 comments on commit 56604b0

Please sign in to comment.