mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
OpenGL logging
Print warning if OpenGL logging is disabled but loglevel is too low Fix format of printed functions Closes 656
This commit is contained in:
@@ -89,9 +89,8 @@ float CameraLightSource::intensity() const {
|
||||
return _intensity;
|
||||
}
|
||||
|
||||
glm::vec3 CameraLightSource::directionViewSpace(const RenderData& renderData) const {
|
||||
glm::vec3 CameraLightSource::directionViewSpace(const RenderData&) const {
|
||||
return glm::vec3(0.f, 0.f, 1.f);
|
||||
}
|
||||
|
||||
|
||||
} // namespace openspace
|
||||
|
||||
@@ -162,11 +162,11 @@ documentation::Documentation RenderableModel::Documentation() {
|
||||
RenderableModel::RenderableModel(const ghoul::Dictionary& dictionary)
|
||||
: Renderable(dictionary)
|
||||
, _colorTexturePath(TextureInfo)
|
||||
, _ambientIntensity(AmbientIntensityInfo, 0.2, 0.0, 1.0)
|
||||
, _diffuseIntensity(DiffuseIntensityInfo, 1.0, 0.0, 1.0)
|
||||
, _specularIntensity(SpecularIntensityInfo, 1.0, 0.0, 1.0)
|
||||
, _ambientIntensity(AmbientIntensityInfo, 0.2f, 0.f, 1.f)
|
||||
, _diffuseIntensity(DiffuseIntensityInfo, 1.f, 0.f, 1.f)
|
||||
, _specularIntensity(SpecularIntensityInfo, 1.f, 0.f, 1.f)
|
||||
, _performShading(ShadingInfo, true)
|
||||
, _modelTransform(ModelTransformInfo, glm::mat3(1.0))
|
||||
, _modelTransform(ModelTransformInfo, glm::mat3(1.f))
|
||||
, _lightSourcePropertyOwner({ "LightSources", "Light Sources" })
|
||||
{
|
||||
documentation::testSpecificationAndThrow(
|
||||
|
||||
Reference in New Issue
Block a user