History

Hack for unknown pipelines

Atlante45 committed 11 years ago

Commit 6d234a21 parent ad3cea91 file · +7 −3Browse files

Showing the changes to libraries/render-utils/src/Model.cpp (1 of 1 file). Show all

Unified · Split

libraries/render-utils/src/Model.cpp+7−3
@@ -310,10 +310,14 @@ void Model::init() { · 309 unmodified lines
310 RenderKey(RenderKey::HAS_TANGENTS | RenderKey::HAS_SPECULAR),310 RenderKey(RenderKey::HAS_TANGENTS | RenderKey::HAS_SPECULAR),
311 modelNormalMapVertex, modelNormalSpecularMapPixel);311 modelNormalMapVertex, modelNormalSpecularMapPixel);
312 312
313 313
314 _renderPipelineLib.addRenderPipeline(314 _renderPipelineLib.addRenderPipeline(
315 RenderKey(RenderKey::IS_TRANSLUCENT),315 RenderKey(RenderKey::IS_TRANSLUCENT),
316 modelVertex, modelTranslucentPixel);316 modelVertex, modelTranslucentPixel);
317 // FIXME Ignore lightmap for translucents meshpart
318 _renderPipelineLib.addRenderPipeline(
319 RenderKey(RenderKey::IS_TRANSLUCENT | RenderKey::HAS_LIGHTMAP),
320 modelVertex, modelTranslucentPixel);
317 321
318 _renderPipelineLib.addRenderPipeline(322 _renderPipelineLib.addRenderPipeline(
319 RenderKey(RenderKey::HAS_TANGENTS | RenderKey::IS_TRANSLUCENT),323 RenderKey(RenderKey::HAS_TANGENTS | RenderKey::IS_TRANSLUCENT),