mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 21:32:19 +01:00
21 lines
426 B
HLSL
21 lines
426 B
HLSL
#include "ShaderConstants.fxh"
|
|
|
|
struct PS_Input
|
|
{
|
|
float4 position : SV_Position;
|
|
float4 light : LIGHT;
|
|
};
|
|
|
|
struct PS_Output
|
|
{
|
|
float4 color : SV_Target;
|
|
};
|
|
|
|
void main( in PS_Input PSInput, out PS_Output PSOutput )
|
|
{
|
|
float4 color = lerp( float4( 1, 1, 1, 1 ), PSInput.light, PSInput.light.a );
|
|
|
|
color.rgb = lerp( color, OVERLAY_COLOR, OVERLAY_COLOR.a ).rgb;
|
|
|
|
PSOutput.color = color;
|
|
} |