-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33f179d
commit 5501b66
Showing
7 changed files
with
68 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
clipboard_set_text("struct PS_INPUT { | ||
float2 texcoord: TEXCOORD0; | ||
float4 color: COLOR0; | ||
}; | ||
struct PS_OUTPUT { | ||
float4 color: COLOR0; | ||
}; | ||
SamplerState rSampler: register(s0); | ||
PS_OUTPUT main(PS_INPUT input) { | ||
PS_OUTPUT output; | ||
float4 albedo = tex2D(rSampler, input.texcoord); | ||
output.color = albedo * input.color; | ||
return output; | ||
}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
clipboard_set_text("struct VS_INPUT { | ||
float4 position: POSITION0; | ||
float2 texcoord: TEXCOORD0; | ||
float4 color: COLOR0; | ||
}; | ||
struct VS_OUTPUT { | ||
float4 position: POSITION0; | ||
float2 texcoord: TEXCOORD0; | ||
float4 color: COLOR0; | ||
}; | ||
matrix rMatrixWVP; | ||
VS_OUTPUT main(VS_INPUT input) { | ||
VS_OUTPUT output; | ||
output.position = mul(rMatrixWVP, input.position); | ||
output.texcoord = input.texcoord; | ||
output.color = input.color; | ||
return output; | ||
}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,3 +208,5 @@ save_as | |
cli_compile | ||
textarea_get | ||
clipboard_cleanup | ||
copy_ps | ||
copy_vs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,5 @@ | |
|createui | ||
|drawui | ||
|update_window | ||
|copy_ps | ||
|copy_vs |