diff --git a/examples/waves/media/GerstnerWaves_fs.glsl b/examples/waves/media/GerstnerWaves_fs.glsl index a2e474a96..550839246 100644 --- a/examples/waves/media/GerstnerWaves_fs.glsl +++ b/examples/waves/media/GerstnerWaves_fs.glsl @@ -34,7 +34,7 @@ varying vec2 bumpCoord; void main() { // Apply bump mapping to normal vector to make waves look more detailed: - vec4 bump = texture2D(bumpMap, bumpCoord)*2.0 - 1.0; + vec4 bump = texture2D(bumpMap, bumpCoord) * 2.0 - 1.0; vec3 N = normalize(rotMatrix * bump.xyz); // Reflected ray: @@ -52,7 +52,7 @@ void main() vec4 envColor = textureCube(cubeMap, R, 0.0); // Cheap hdr effect: - envColor.rgb *= (envColor.r+envColor.g+envColor.b)*hdrMultiplier; + envColor.rgb *= (envColor.r + envColor.g + envColor.b) * hdrMultiplier; // Compute refraction ratio (Fresnel): float facing = 1.0 - dot(-E, N); diff --git a/ogre/src/OgreMaterial.cc b/ogre/src/OgreMaterial.cc index 7e1d63277..d0d0f218d 100644 --- a/ogre/src/OgreMaterial.cc +++ b/ogre/src/OgreMaterial.cc @@ -422,7 +422,7 @@ void OgreMaterial::UpdateShaderParams(ConstShaderParamsPtr _params, ShaderParam::PARAM_TEXTURE_CUBE == name_param.second.Type()))) { gzwarn << "Unable to find GPU program parameter: " - << name_param.first << std::endl; + << name_param.first << std::endl; continue; }