Skip to content

Commit

Permalink
simplified d3d shaders now that we always have prelight declared
Browse files Browse the repository at this point in the history
  • Loading branch information
aap committed Apr 25, 2020
1 parent 1371a42 commit 5ffbde3
Show file tree
Hide file tree
Showing 22 changed files with 798 additions and 931 deletions.
2 changes: 1 addition & 1 deletion src/d3d/shaders/default_PS.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// fxc /T ps_2_0 /Fh default_PS.h default_PS.hlsl
// fxc /nologo /T ps_2_0 /Fh default_PS.h default_PS.hlsl
//
//
// Parameters:
Expand Down
5 changes: 1 addition & 4 deletions src/d3d/shaders/default_VS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ VS_out main(in VS_in input)

output.TexCoord0.xy = input.TexCoord;

output.Color = float4(0.0, 0.0, 0.0, 1.0);
if(surfPrelight > 0.0)
output.Color = input.Prelight;

output.Color = input.Prelight;
output.Color.rgb += ambientLight.rgb * surfAmbient;

int i;
Expand Down
Loading

0 comments on commit 5ffbde3

Please sign in to comment.