Move all data into the subdir it belongs to

Completely removes the build dir in favor of cmake based build layouting
This commit is contained in:
BtbN
2014-07-15 15:02:03 +02:00
parent 2515aeb320
commit 38c2fc87aa
322 changed files with 19 additions and 33 deletions

View File

@@ -21,4 +21,4 @@ target_link_libraries(test-input
${test-input_PLATFORM_DEPS}
libobs)
install_obs_plugin_data(test-input ../../build/data/obs-plugins/test-input)
install_obs_plugin_data(test-input data)

View File

@@ -0,0 +1,35 @@
uniform float4x4 ViewProj;
uniform texture2d diffuse;
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 diffuse.Sample(texSampler, fragment_in.uv);
}
technique Default
{
pass
{
vertex_shader = VShader(vert_in);
pixel_shader = PShader(fragment_in);
}
}

View File

@@ -0,0 +1,37 @@
uniform float4x4 ViewProj;
uniform texture2d image;
uniform float4 color = {0.0, 1.0, 0.0, 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);
}
}