This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migarting code over to NetCore and creating new project for latest ve…
…rsion of MonoGame.
- Loading branch information
1 parent
cd7f7d4
commit 27ca0f3
Showing
2,883 changed files
with
1,105,700 additions
and
582 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
sampler2D screen: register(s0); | ||
sampler colorPallete: register(s1); | ||
|
||
float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0 | ||
{ | ||
float4 color = tex2D(screen, coords); | ||
return tex2D(colorPallete, float2(color.r, 0.5f)); | ||
} | ||
|
||
technique Technique1 | ||
{ | ||
pass Pass1 | ||
{ | ||
PixelShader = compile ps_2_0 PixelShaderFunction(); | ||
} | ||
} |
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 @@ | ||
sampler main: register(s0); | ||
sampler colorPallete: register(s1); | ||
sampler screen: register(s2); | ||
float imageWidth; | ||
|
||
float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0 | ||
{ | ||
float4 color = tex2D(screen, float2(coords.x, coords.y)); | ||
int subpart = int(coords.x * imageWidth) % 4; | ||
|
||
return tex2D(colorPallete, float2(color[subpart], 0.5f)); | ||
} | ||
|
||
technique Technique1 | ||
{ | ||
pass Pass1 | ||
{ | ||
PixelShader = compile ps_2_0 PixelShaderFunction(); | ||
} | ||
} |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,12 @@ | ||
# http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.cs] | ||
indent_style = space | ||
indent_size = 4 |
Oops, something went wrong.