39 lines
961 B
V Shell
Executable File
39 lines
961 B
V Shell
Executable File
//hlsl vs_1_1
|
|
|
|
#define textureCoordinateSetMAIN textureCoordinateSet0
|
|
#define DECLARE_textureCoordinateSets \
|
|
float2 textureCoordinateSet0 : TEXCOORD0 : register(v7);
|
|
|
|
#include "vertex_program/include/vertex_shader_constants.inc"
|
|
#include "vertex_program/include/functions.inc"
|
|
|
|
struct InputVertex
|
|
{
|
|
float4 position : POSITION0 : register(v0);
|
|
float4 color : COLOR0 : register(v5);
|
|
DECLARE_textureCoordinateSets
|
|
};
|
|
|
|
struct OutputVertex
|
|
{
|
|
float4 position : POSITION0;
|
|
float3 color : COLOR0;
|
|
float2 tcs_MAIN : TEXCOORD0;
|
|
};
|
|
|
|
OutputVertex main(InputVertex inputVertex)
|
|
{
|
|
OutputVertex outputVertex;
|
|
|
|
// transform vertex
|
|
outputVertex.position = transform3d(inputVertex.position);
|
|
|
|
// copy texture coordinates
|
|
outputVertex.tcs_MAIN = inputVertex.textureCoordinateSetMAIN;
|
|
|
|
outputVertex.color = inputVertex.color;
|
|
|
|
return outputVertex;
|
|
}
|
|
|