added tga file output, noch funktion ergaenzen, um mehrere files auszugeben

git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@3 24008968-59e6-ed4c-a10b-0b2c954b24ab
This commit is contained in:
mikeb
2021-02-24 20:09:21 +00:00
parent c9a741df87
commit 685fdf3fa9
9 changed files with 85 additions and 8 deletions
+7 -1
View File
@@ -1,16 +1,22 @@
struct PixelShaderInput {
float4 pos : SV_POSITION;
float4 color : COLOR;
float4 uvst : COORDINATES;
};
struct PixelShaderOutput {
float4 color : SV_TARGET;
};
Texture2D<float4> tex1 : register(t0);
SamplerState texture_sampler : register(s0);
PixelShaderOutput main(PixelShaderInput input) {
PixelShaderOutput output;
#if 1
output.color = input.color;
output.color = tex1.Sample(texture_sampler, input.uvst.xy);
#else
output.color = float4(1, 0, 1, 1);
#endif
+3 -1
View File
@@ -1,6 +1,7 @@
struct VertexShaderInput {
// Per Vertex
float4 pos : VERTEX_POSITION;
float4 uvst : COORDINATES;
uint vid : SV_VertexID;
// Per Instance
@@ -12,6 +13,7 @@ struct VertexShaderInput {
struct VertexShaderOutput {
float4 pos : SV_POSITION;
float4 color : COLOR;
float4 uvst : COORDINATES;
};
@@ -47,7 +49,7 @@ VertexShaderOutput main(VertexShaderInput input) {
output.pos.zw = float2(0, 1);
output.color = input.left_color;
output.uvst = input.uvst;
return output;
}
Binary file not shown.
Binary file not shown.