// 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.
namespace Stride.Rendering.Materials
{
    // Temporary code for testing IMaterialSurface
    shader MaterialSurfaceVertexStageCompositor : ShaderBase
    {
        compose IMaterialSurface materialVertexStage;
        compose IStreamInitializer streamInitializerVertexStage;

        stage override void VSMain()
        {
            base.VSMain();

            // Reset material streams 
            streamInitializerVertexStage.ResetStream();

            // Compute the shading of the surface
            // TODO: separate between material attributes blending and material lighting/shadow shading
            materialVertexStage.Compute();
        }
    };
}
