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
310310 RenderKey(RenderKey::HAS_TANGENTS | RenderKey::HAS_SPECULAR),
311311 modelNormalMapVertex, modelNormalSpecularMapPixel);
312312
313−
313+
314314 _renderPipelineLib.addRenderPipeline(
315− RenderKey(RenderKey::IS_TRANSLUCENT),
316− modelVertex, modelTranslucentPixel);
315+ RenderKey(RenderKey::IS_TRANSLUCENT),
316+ modelVertex, modelTranslucentPixel);
317+ // FIXME Ignore lightmap for translucents meshpart
318+ _renderPipelineLib.addRenderPipeline(
319+ RenderKey(RenderKey::IS_TRANSLUCENT | RenderKey::HAS_LIGHTMAP),
320+ modelVertex, modelTranslucentPixel);
317321
318322 _renderPipelineLib.addRenderPipeline(
319323 RenderKey(RenderKey::HAS_TANGENTS | RenderKey::IS_TRANSLUCENT),