Skip to content

Commit

Permalink
Fixed dark lion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pkozuchowskiPS committed May 17, 2020
1 parent c8f0a32 commit 2ad09b0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ To find the folder quickly type "%appdata%\Star Sonata 2\Content" into path wind
Shaders only work on Medium, High and Very High graphic settings. Game does not use shaders in rendering on Low settings.

#Known Issues
* Lion ship may look dark
* Some stations appear to be black (base model has faces pointing to it's inside)


Expand Down
Binary file added src/Textures/Ships/UberZoneShipLion.jpg_NM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/shaders/ShipMaterialP2.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ float4 pixelMain
{
if (UseNormalMap) {
float4 sample = tex2D(NormalMapSampler, TexCoords);
float3 peturbation = saturate(sample.xyz - float3(0.5, 0.5, 0.5));
float3 peturbation = sample.xyz - float3(0.5, 0.5, 0.5);

Normal = float3(
peturbation.x * Tangent -
Expand Down
2 changes: 1 addition & 1 deletion src/shaders/ShipMaterialP3.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ float4 pixelMain
{
if (UseNormalMap) {
float4 sample = tex2D(NormalMapSampler, TexCoords);
float3 peturbation = saturate(sample.xyz - float3(0.5, 0.5, 0.5));
float3 peturbation = sample.xyz - float3(0.5, 0.5, 0.5);

Normal = float3(
peturbation.x * Tangent -
Expand Down

0 comments on commit 2ad09b0

Please sign in to comment.