Skip to content

Commit

Permalink
update res and shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Dec 30, 2023
1 parent 0a5927f commit 4de8ba1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 9 additions & 2 deletions Build/svencoop/renderer/shader/studio_shader.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,16 @@ vec3 R_StudioLighting(vec3 vWorldPos, vec3 vNormal, float specularMask)

#endif

//Really need to clamp?

float lv = clamp(illum, 0.0, 255.0) / 255.0;
#if defined(STUDIO_NF_OVERBRIGHT)

float lv = clamp(illum, 0.0, 4096.0) / 255.0;

#else

float lv = clamp(illum, 0.0, 255.0) / 255.0;

#endif

lv = LightGammaToLinearInternal(lv);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
"celshade_midpoint" "-0.1"
"celshade_softness" "0.05"
"celshade_shadow_color" "160 150 150"
"celshade_head_offset" "3.5 2 0"
"celshade_light_adjust" "0.01 0.001"
"outline_size" "3.0"
"outline_dark" "0.5"
"rimlight_power" "5.0"
Expand Down

0 comments on commit 4de8ba1

Please sign in to comment.