Files
2026-06-01 12:46:52 +02:00

38 lines
807 B
HLSL

#include "def_effect.fx"
//=============================================================================
// WEATHER
VSWEATHER_OUTPUT Weather_VS( VSWEATHER_INPUT In )
{
VSWEATHER_OUTPUT Out = (VSWEATHER_OUTPUT) 0;
float4 position = In.position;
float4 diffuse = In.diffuse;
float4 output_position, world_position;
int b_index = 0;
// position
world_position = mul( position, blendMatrices[ b_index ] );
output_position = mul( position, view_proj_matrix );
Out.position = output_position;
// diffuse
Out.diffuse = diffuse;
// texture
Out.texCoord1 = In.texCoord1;
}
//=============================================================================
// WEATHER TECHNIQUE
technique WeatherTech
{
pass P0
{
VertexShader = compile vs_1_1 Weather_VS();
PixelShader = NULL;
}
}