Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Sep 18, 2023
1 parent 4dce39f commit 88b4fb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/waves/media/GerstnerWaves_fs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ogre/src/OgreMaterial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 88b4fb7

Please sign in to comment.