MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / Process

Method Process

src/Nazara/Graphics/DeferredFogPass.cpp:158–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 */
157
158 bool DeferredFogPass::Process( const SceneData& sceneData, unsigned int firstWorkTexture, unsigned int secondWorkTexture) const
159 {
160 NazaraAssert(sceneData.viewer, "Invalid viewer");
161
162 m_workRTT->SetColorTarget(firstWorkTexture);
163 Renderer::SetTarget(m_workRTT);
164 Renderer::SetViewport(Recti(0, 0, m_dimensions.x, m_dimensions.y));
165
166 Renderer::SetShader(m_shader);
167 m_shader->SendVector(m_shaderEyePositionLocation, sceneData.viewer->GetEyePosition());
168
169 Renderer::SetRenderStates(m_states);
170 Renderer::SetTexture(0, m_workTextures[secondWorkTexture]);
171 Renderer::SetTexture(1, m_GBuffer[2]);
172 Renderer::SetTextureSampler(0, m_pointSampler);
173 Renderer::SetTextureSampler(1, m_pointSampler);
174 Renderer::DrawFullscreenQuad();
175
176 return true;
177}
178}

Callers 1

DrawMethod · 0.45

Calls 2

SendVectorMethod · 0.80
GetEyePositionMethod · 0.80

Tested by

no test coverage detected