Fallow and name fix

This commit is contained in:
Tleety
2016-02-19 13:52:16 +01:00
parent 844825813b
commit 949ee76f55
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ struct LightResult {
}; };
float CalcAttenuation(float radius, float dist, float falloff) { float CalcAttenuation(float radius, float dist, float falloff) {
return 1.0 - smoothstep(radius * 0.3, radius, dist); return 1.0 - smoothstep(radius * falloff, radius, dist);
} }
vec4 CalcSpecular(vec4 lightColor, vec4 viewVec, vec4 lightVec, vec4 normal) { vec4 CalcSpecular(vec4 lightColor, vec4 viewVec, vec4 lightVec, vec4 normal) {
+1 -1
View File
@@ -122,7 +122,7 @@ void DrawBloomPass::Draw(GLuint texture)
} }
void DrawBloomPass::OnWindowRezise() void DrawBloomPass::OnWindowResize()
{ {
GenerateTexture(&m_GaussianTexture_vert, GL_CLAMP_TO_EDGE, GL_LINEAR, glm::vec2(m_Renderer->GetViewportSize().Width, m_Renderer->GetViewportSize().Height), GL_RGB16F, GL_RGB, GL_FLOAT); GenerateTexture(&m_GaussianTexture_vert, GL_CLAMP_TO_EDGE, GL_LINEAR, glm::vec2(m_Renderer->GetViewportSize().Width, m_Renderer->GetViewportSize().Height), GL_RGB16F, GL_RGB, GL_FLOAT);
m_GaussianFrameBuffer_vert.Generate(); m_GaussianFrameBuffer_vert.Generate();
+1 -1
View File
@@ -29,7 +29,7 @@ void Renderer::glfwFrameBufferCallback(GLFWwindow* window, int width, int height
currentRenderer->m_DrawFinalPass->OnWindowResize(); currentRenderer->m_DrawFinalPass->OnWindowResize();
currentRenderer->m_LightCullingPass->OnWindowResize(); currentRenderer->m_LightCullingPass->OnWindowResize();
currentRenderer->m_PickingPass->OnWindowResize(); currentRenderer->m_PickingPass->OnWindowResize();
currentRenderer->m_DrawBloomPass->OnWindowRezise(); currentRenderer->m_DrawBloomPass->OnWindowResize();
} }
void Renderer::InitializeWindow() void Renderer::InitializeWindow()