// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
/// <summary>
/// Defines a texture for the output of the opaque render pass
/// and a helper function to extract the color of it.
/// </summary>
shader OpaqueBase : Texturing
{
    // -------------------------------------
    // Resources
    // -------------------------------------
    rgroup PerView.Opaque
    {
        stage Texture2D OpaqueRenderTarget;
    }

    float3 GetOpaqueColor(float2 uv)
    {
        return OpaqueRenderTarget.SampleLevel(PointSampler, uv, 0.0).xyz;
    }
};
