Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Sundisk more responsive to color of light #520

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/VRage.Render11/Shaders/light_dir.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Texture2D<float> ShadowsMainView : register(MERGE(t, SHADOW_SLOT));

float3 GetSunColor(float3 L, float3 V, float3 color, float sizeMult)
{
return (color + 0.5f + float3(0.5f, 0.35f, 0.0f)) * pow(saturate(dot(L, -V)), 4000.0f) * sizeMult;
return color * 2 * pow(saturate(dot(L, -V)), 4000.0f) * sizeMult;
}

void __pixel_shader(PostprocessVertex vertex, out float3 output : SV_Target0
Expand Down