History

Adding reflection of the ambient map for translucent

samcake committed 10 years ago

Commit 88f816f2 parents 4202e60 b95c81d644 files · +5265 −1186Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 644 files). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+5−5
@@ -506,9 +506,9 @@ GeometryCache::GeometryCache() : · 505 unmodified lines
506506 std::make_shared<render::ShapePipeline>(getSimplePipeline(), nullptr,
507507 [](const render::ShapePipeline&, gpu::Batch& batch) {
508508 // Set the defaults needed for a simple program
509− batch.setResourceTexture(render::ShapePipeline::Slot::ALBEDO_MAP,
509+ batch.setResourceTexture(render::ShapePipeline::Slot::MAP::ALBEDO,
510510 DependencyManager::get<TextureCache>()->getWhiteTexture());
511− batch.setResourceTexture(render::ShapePipeline::Slot::NORMAL_FITTING_MAP,
511+ batch.setResourceTexture(render::ShapePipeline::Slot::MAP::NORMAL_FITTING,
512512 DependencyManager::get<TextureCache>()->getNormalFittingTexture());
513513 }
514514 );
@@ -1736,11 +1736,11 @@ void GeometryCache::bindSimpleProgram(gpu::Batch& batch, bool textured, bool cul · 1221 unmodified lines
17361736
17371737 // If not textured, set a default albedo map
17381738 if (!textured) {
1739− batch.setResourceTexture(render::ShapePipeline::Slot::ALBEDO_MAP,
1739+ batch.setResourceTexture(render::ShapePipeline::Slot::MAP::ALBEDO,
17401740 DependencyManager::get<TextureCache>()->getWhiteTexture());
17411741 }
17421742 // Set a default normal map
1743− batch.setResourceTexture(render::ShapePipeline::Slot::NORMAL_FITTING_MAP,
1743+ batch.setResourceTexture(render::ShapePipeline::Slot::MAP::NORMAL_FITTING,
17441744 DependencyManager::get<TextureCache>()->getNormalFittingTexture());
17451745 }
17461746
@@ -1758,7 +1758,7 @@ gpu::PipelinePointer GeometryCache::getSimplePipeline(bool textured, bool culled · 11 unmodified lines
17581758 _emissiveShader = gpu::Shader::createProgram(VS, PSEmissive);
17591759
17601760 gpu::Shader::BindingSet slotBindings;
1761− slotBindings.insert(gpu::Shader::Binding(std::string("normalFittingMap"), render::ShapePipeline::Slot::NORMAL_FITTING_MAP));
1761+ slotBindings.insert(gpu::Shader::Binding(std::string("normalFittingMap"), render::ShapePipeline::Slot::MAP::NORMAL_FITTING));
17621762 gpu::Shader::makeProgram(*_simpleShader, slotBindings);
17631763 gpu::Shader::makeProgram(*_emissiveShader, slotBindings);
17641764 });

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t