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
9714cc8
commit 926f1f0
Showing
27 changed files
with
111 additions
and
4 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,10 @@ | ||
float4 main( | ||
float2 vTexcoord : TEXCOORD0, | ||
uniform float4 vColor, | ||
uniform sampler2D tex | ||
) | ||
{ | ||
float4 c = tex2D(tex, vTexcoord) * vColor; | ||
if (c.a > 0.666) return c; | ||
else discard; | ||
} |
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,8 @@ | ||
float4 main( | ||
float2 vTexcoord : TEXCOORD0, | ||
uniform float4 vColor, | ||
uniform sampler2D tex | ||
) | ||
{ | ||
return tex2D(tex, vTexcoord) * vColor; | ||
} |
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,10 @@ | ||
float4 main( | ||
float2 vTexcoord : TEXCOORD0, | ||
float4 vColor : COLOR, | ||
uniform sampler2D tex | ||
) | ||
{ | ||
float4 c = tex2D(tex, vTexcoord) * vColor; | ||
if (c.a > 0.666) return c; | ||
else discard; | ||
} |
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,8 @@ | ||
float4 main( | ||
float2 vTexcoord : TEXCOORD0, | ||
float4 vColor : COLOR, | ||
uniform sampler2D tex | ||
) | ||
{ | ||
return tex2D(tex, vTexcoord) * vColor; | ||
} |
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,9 @@ | ||
float4 main( | ||
float2 vTexcoord : TEXCOORD0, | ||
uniform sampler2D tex | ||
) | ||
{ | ||
float4 c = tex2D(tex, vTexcoord); | ||
if (c.a > 0.666) return c; | ||
else discard; | ||
} |
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,7 @@ | ||
float4 main( | ||
float2 vTexcoord : TEXCOORD0, | ||
uniform sampler2D tex | ||
) | ||
{ | ||
return tex2D(tex, vTexcoord); | ||
} |
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,5 @@ | ||
float4 main(float4 vColor : COLOR) : COLOR | ||
{ | ||
if (vColor.a > 0.666) return vColor; | ||
else discard; | ||
} |
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,4 @@ | ||
float4 main(float4 vColor : COLOR) : COLOR | ||
{ | ||
return vColor; | ||
} |
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,11 @@ | ||
void main( | ||
float3 aPosition, | ||
float4 aColor, | ||
column_major uniform float4x4 wvp, | ||
float4 out vPosition: POSITION, | ||
float4 out vColor: COLOR) | ||
{ | ||
vPosition = mul(float4(aPosition, 1.f), wvp); | ||
vColor = aColor; | ||
} | ||
|
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,13 @@ | ||
void main( | ||
float3 position, | ||
float2 texcoord, | ||
float4 color, | ||
column_major uniform float4x4 wvp, | ||
float4 out vPosition : POSITION, | ||
float2 out vTexcoord : TEXCOORD0, | ||
float4 out vColor : COLOR) | ||
{ | ||
vPosition = mul(float4(position, 1.f), wvp); | ||
vTexcoord = texcoord; | ||
vColor = color; | ||
} |
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,10 @@ | ||
void main( | ||
float3 position, | ||
float2 texcoord, | ||
column_major uniform float4x4 wvp, | ||
float4 out vPosition : POSITION, | ||
float2 out vTexcoord : TEXCOORD0) | ||
{ | ||
vPosition = mul(float4(position, 1.f), wvp); | ||
vTexcoord = texcoord; | ||
} |
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,4 @@ | ||
float4 main(uniform float4 color) : COLOR | ||
{ | ||
return color; | ||
} |
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,8 @@ | ||
void main( | ||
float3 aPosition, | ||
column_major uniform float4x4 wvp, | ||
float4 out vPosition: POSITION) | ||
{ | ||
vPosition = mul(float4(aPosition, 1.f), wvp); | ||
} | ||
|