mirror of
https://github.com/SWG-Source/clientdata_OLD.git
synced 2026-07-14 00:01:59 -04:00
30 lines
550 B
V Shell
Executable File
30 lines
550 B
V Shell
Executable File
//hlsl vs_1_1 vs_2_0
|
|
|
|
#include "vertex_program/include/vertex_shader_constants.inc"
|
|
#include "vertex_program/include/functions.inc"
|
|
|
|
struct Input
|
|
{
|
|
float4 position : POSITION0 : register(v0);
|
|
float4 diffuse : COLOR0 : register(v5);
|
|
};
|
|
|
|
struct Output
|
|
{
|
|
float4 position : POSITION0;
|
|
float4 diffuse : COLOR0;
|
|
};
|
|
|
|
Output main(Input vertex)
|
|
{
|
|
Output output;
|
|
|
|
// transform vertex
|
|
output.position = transform2d(vertex.position);
|
|
|
|
// calculate lighting
|
|
output.diffuse = vertex.diffuse;
|
|
|
|
return output;
|
|
}
|