Skip to content

Commit

Permalink
Modifications in testbed application
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielChappuis committed Jan 7, 2024
1 parent ff4549e commit 995f59d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testbed/src/SceneDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ void SceneDemo::render() {
mPhongShader.setVector3Uniform("light0DiffuseColor", Vector3(mLight0.getDiffuseColor().r, mLight0.getDiffuseColor().g, mLight0.getDiffuseColor().b));
mPhongShader.setVector3Uniform("light1DiffuseColor", Vector3(mLight1.getDiffuseColor().r, mLight1.getDiffuseColor().g, mLight1.getDiffuseColor().b));
mPhongShader.setVector3Uniform("light2DiffuseColor", Vector3(mLight2.getDiffuseColor().r, mLight2.getDiffuseColor().g, mLight2.getDiffuseColor().b));
mPhongShader.setIntUniform("shadowMapSampler0", textureUnits[0]);
mPhongShader.setIntUniform("shadowMapSampler1", textureUnits[1]);
if (mIsShadowMappingEnabled) {
mPhongShader.setIntUniform("shadowMapSampler0", textureUnits[0]);
mPhongShader.setIntUniform("shadowMapSampler1", textureUnits[1]);
}
mPhongShader.setIntUniform("isShadowEnabled", mIsShadowMappingEnabled);
mPhongShader.setVector2Uniform("shadowMapDimension", Vector2(SHADOWMAP_WIDTH, SHADOWMAP_HEIGHT));
mPhongShader.unbind();
Expand Down Expand Up @@ -303,8 +305,6 @@ void SceneDemo::render() {
}
}

mPhongShader.unbind();

//drawTextureQuad();
}

Expand Down

0 comments on commit 995f59d

Please sign in to comment.