Skip to content

Commit

Permalink
--spelling;comment correction
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner65 committed Oct 2, 2023
1 parent b7e3e6d commit 01dc1a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/esp/gfx/Drawable.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class Drawable : public Magnum::SceneGraph::Drawable3D {
* Magnum::Resource).
* @param transformationMatrix The transformation matrix passed to this
* drawables draw function.
* @param camera The camera passsed to this drawable's draw function
* @param camera The camera passed to this drawable's draw function
* @param shader The shader this drawable consumes.
*/
template <class ShaderType>
Expand Down Expand Up @@ -274,7 +274,7 @@ void Drawable::updateShaderLightingParameters(
const auto& lightInfo = (*lightSetup_)[i];
Mn::Vector4 pos = getLightPositionRelativeToCamera(
lightInfo, transformationMatrix, cameraMatrix);
// flip directional lights to faciliate faster, non-forking calc in
// flip directional lights to facilitate faster, non-forking calc in
// shader. Leave non-directional lights unchanged
pos *= (pos[3] * 2) - 1;
lightPositions.emplace_back(pos);
Expand Down
8 changes: 4 additions & 4 deletions src/shaders/gfx/pbrUniforms.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ uniform int uPbrDebugDisplay;
#endif

// -------------- uniforms for material and textures ------------------
// MaterialData defined in pbrMaterials.glsl
// MaterialData defined in pbrStructs.glsl
uniform MaterialData uMaterial;

#if defined(BASECOLOR_TEXTURE)
Expand All @@ -66,7 +66,7 @@ uniform sampler2D uEmissiveTexture;
#endif

#if defined(CLEAR_COAT)
// ClearCoatData defined in pbrMaterials.glsl
// ClearCoatData defined in pbrStructs.glsl
uniform ClearCoatData uClearCoat;

#if defined(CLEAR_COAT_TEXTURE)
Expand All @@ -84,7 +84,7 @@ uniform sampler2D uClearCoatNormalTexture;
#endif // CLEAR_COAT

#if defined(SPECULAR_LAYER)
// SpecularLayerData defined in pbrMaterials.glsl
// SpecularLayerData defined in pbrStructs.glsl
uniform SpecularLayerData uSpecularLayer;

#if defined(SPECULAR_LAYER_TEXTURE)
Expand All @@ -98,7 +98,7 @@ uniform sampler2D uSpecularLayerColorTexture;
#endif // SPECULAR_LAYER

#if defined(ANISOTROPY_LAYER)
// AnisotropyLayerData defined in pbrMaterials.glsl
// AnisotropyLayerData defined in pbrStructs.glsl
uniform AnisotropyLayerData uAnisotropyLayer;

#if defined(ANISOTROPY_LAYER_TEXTURE)
Expand Down

0 comments on commit 01dc1a8

Please sign in to comment.