Imported Upstream version 0.13.2+dsfg1
This commit is contained in:
commit
fb3990e9e5
2036 changed files with 287360 additions and 0 deletions
37
test/test-input/data/test.effect
Normal file
37
test/test-input/data/test.effect
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
uniform float4x4 ViewProj;
|
||||
uniform texture2d image;
|
||||
|
||||
uniform float4 color = {0.5, 1.0, 0.5, 1.0};
|
||||
|
||||
sampler_state texSampler {
|
||||
AddressU = Clamp;
|
||||
AddressV = Clamp;
|
||||
Filter = Linear;
|
||||
};
|
||||
|
||||
struct VertexInOut {
|
||||
float4 pos : POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
};
|
||||
|
||||
VertexInOut VShader(VertexInOut vert_in)
|
||||
{
|
||||
VertexInOut vert_out;
|
||||
vert_out.pos = mul(float4(vert_in.pos.xyz, 1.0), ViewProj);
|
||||
vert_out.uv = vert_in.uv;
|
||||
return vert_out;
|
||||
}
|
||||
|
||||
float4 PShader(VertexInOut fragment_in) : TARGET
|
||||
{
|
||||
return image.Sample(texSampler, fragment_in.uv) * color;
|
||||
}
|
||||
|
||||
technique Draw
|
||||
{
|
||||
pass
|
||||
{
|
||||
vertex_shader = VShader(vert_in);
|
||||
pixel_shader = PShader(fragment_in);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue