Skip to content

Commit 08ed354

Browse files
committed
cleanup
1 parent a67d61a commit 08ed354

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

HelloVulkan/Header/Camera.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Camera
4242
private:
4343
void UpdateInternal();
4444

45-
public:
45+
private:
4646
glm::mat4 projectionMatrix_;
4747
glm::mat4 inverseProjectionMatrix_;
4848
glm::mat4 viewMatrix_;

Shaders/ShadowMapping/Depth.vert

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,4 @@ void main()
3939
mat4 model = modelUBOs[meshData.modelMatrixIndex].model;
4040

4141
gl_Position = shadowUBO.lightSpaceMatrices[pc.cascadeIndex] * model * vertexData.position;
42-
//gl_Position = shadowUBO.orthoMatrices[pc.cascadeIndex] *
43-
// shadowUBO.viewMatrices[pc.cascadeIndex] *
44-
// model * vertexData.position;
4542
}

Shaders/ShadowMapping/PCF.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ float ShadowPCF(vec4 shadowCoord, uint cascadeIndex)
3333

3434
float poissonRadius = 1000.0 * shadowUBO.poissonSize;
3535
float shadow = 0.0;
36-
int numSamples = 8;
36+
const int numSamples = 8;
3737
for (int i = 0; i < numSamples; ++i)
3838
{
3939
vec2 coord = GetPoissonDiskCoord(shadowCoord.xy, i, poissonRadius);

0 commit comments

Comments
 (0)