Merge remote-tracking branch 'origin/1.12' into 1.12
This commit is contained in:
@@ -88,9 +88,8 @@ void TerrainMaterialShader::Bind(BindParameters& params)
|
||||
}
|
||||
|
||||
// Bind terrain textures
|
||||
const auto heightmap = drawCall.Terrain.Patch->Heightmap->GetTexture();
|
||||
const auto splatmap0 = drawCall.Terrain.Patch->Splatmap[0] ? drawCall.Terrain.Patch->Splatmap[0]->GetTexture() : nullptr;
|
||||
const auto splatmap1 = drawCall.Terrain.Patch->Splatmap[1] ? drawCall.Terrain.Patch->Splatmap[1]->GetTexture() : nullptr;
|
||||
GPUTexture* heightmap, *splatmap0, *splatmap1;
|
||||
drawCall.Terrain.Patch->GetTextures(heightmap, splatmap0, splatmap1);
|
||||
context->BindSR(0, heightmap);
|
||||
context->BindSR(1, splatmap0);
|
||||
context->BindSR(2, splatmap1);
|
||||
|
||||
Reference in New Issue
Block a user