32 lines
768 B
HLSL
32 lines
768 B
HLSL
|
|
// Texture2D WaveformTexture;
|
|
// SamplerState WaveformTextureSampler;
|
|
|
|
struct VertexOut
|
|
{
|
|
float4 Position : SV_POSITION;
|
|
float4 Color : COLOR0;
|
|
float4 SecondaryColor : COLOR1;
|
|
float4 TextureCoordinates : TEXCOORD0;
|
|
};
|
|
|
|
|
|
float4 Main(VertexOut InVertex) : SV_Target
|
|
{
|
|
// float4 WaveformData = WaveformTexture.Sample(WaveformTextureSampler, InVertex.TextureCoordinates.xy * InVertex.TextureCoordinates.zw);
|
|
|
|
// float4 Color;
|
|
// float Top = WaveformData.r;
|
|
// float Buttom = WaveformData.g;
|
|
|
|
// if(InVertex.TextureCoordinates.y >= Buttom && InVertex.TextureCoordinates.y <= Top)
|
|
// {
|
|
// Color = float4(0, 1, 0, 1);
|
|
// }
|
|
// else
|
|
// {
|
|
// Color = float4(0, 0, 0, 0);
|
|
// }
|
|
return InVertex.TextureCoordinates;
|
|
}
|