|
|
|
|
|
|
|
|
|
|
void _drawLayer(RenderLayer layer, CommandBuffer cmdBuf) { |
|
|
|
foreach (var subLayer in layer.layers) { |
|
|
|
cmdBuf.GetTemporaryRT(subLayer.rtID, new RenderTextureDescriptor( |
|
|
|
var desc = new RenderTextureDescriptor( |
|
|
|
msaaSamples = QualitySettings.antiAliasing, |
|
|
|
}, FilterMode.Bilinear); |
|
|
|
}; |
|
|
|
|
|
|
|
if (QualitySettings.antiAliasing != 0) { |
|
|
|
desc.msaaSamples = QualitySettings.antiAliasing; |
|
|
|
} |
|
|
|
|
|
|
|
cmdBuf.GetTemporaryRT(subLayer.rtID, desc, FilterMode.Bilinear); |
|
|
|
this._drawLayer(subLayer, cmdBuf); |
|
|
|
} |
|
|
|
|
|
|
|