-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed neo reflections; implemented leeds reflections
- Loading branch information
Showing
14 changed files
with
353 additions
and
52 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.
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,32 @@ | ||
float4x4 combined : register(c0); | ||
float4 fxParams : register(c30); | ||
float3x3 envmat : register(c32); | ||
float4x4 texmat : register(c36); | ||
|
||
#define shininess (fxParams.y) | ||
#define lightmult (fxParams.w) | ||
|
||
struct VS_INPUT { | ||
float4 Position : POSITION; | ||
float3 Normal : NORMAL; | ||
float2 Texcoord1: TEXCOORD1; | ||
}; | ||
|
||
struct VS_OUTPUT { | ||
float4 Position : POSITION; | ||
float2 Texcoord : TEXCOORD0; | ||
float4 Color : COLOR0; | ||
}; | ||
|
||
VS_OUTPUT | ||
main(VS_INPUT IN) | ||
{ | ||
VS_OUTPUT OUT; | ||
OUT.Position = mul(IN.Position, combined); | ||
|
||
float3 envNormal = mul(envmat, IN.Normal); | ||
OUT.Texcoord = mul(texmat, float4(envNormal.xy, 0.0, 1.0)).xy; | ||
OUT.Color = float4(128.0, 128.0, 128.0, 255.0)/255.0*shininess*lightmult; | ||
OUT.Color.a = 1.0; | ||
return OUT; | ||
} |
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
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
Oops, something went wrong.