24 lines
439 B
HLSL
24 lines
439 B
HLSL
#include "globals.hlsli"
|
|
#include "objectInputLayoutHF.hlsli"
|
|
#include "windHF.hlsli"
|
|
|
|
|
|
struct VertexOut
|
|
{
|
|
float4 pos : SV_POSITION;
|
|
};
|
|
|
|
VertexOut main(Input_Shadow_POS input)
|
|
{
|
|
VertexOut Out = (VertexOut)0;
|
|
|
|
float4x4 WORLD = MakeWorldMatrixFromInstance(input.instance);
|
|
|
|
Out.pos = mul(float4(input.pos.xyz, 1), WORLD);
|
|
affectWind(Out.pos.xyz, input.pos.w, g_xFrame_Time);
|
|
|
|
Out.pos = mul(Out.pos, g_xCamera_VP);
|
|
|
|
|
|
return Out;
|
|
} |