StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
146 stars 3 forks source link

The default values that use `cl_csm_viewmodel_farz` and `cl_csm_viewmodel_max_visible_dist` are too small #1633

Open MyGamepedia opened 5 months ago

MyGamepedia commented 5 months ago

Describe the bug

The default values (30 and 21) are too small, because in specific angles weapons viewmodel lighting shine through, instead of creating shadows. Great example is physcannon/physgun. 38 value for both cvars would be good enough.

Here cl_csm_viewmodel_farz 30 and cl_csm_viewmodel_max_shadow_dist 21. 20240110111523_1

Here cl_csm_viewmodel_farz 38 and cl_csm_viewmodel_max_shadow_dist 38. 20240110111840_1

Issue Map

Any map that use CSM.

To Reproduce

  1. Open any map that use CSM lighting (my tesy map testertest_cascadeviewmodel.zip ).
  2. Stand under an object's CSM shadow.
  3. Give weapon physcannon or physgun.
  4. Look down and note the CSM lighting at some moment shine through (if still no - rotate camera to right or left).
  5. Then enter in the console cl_csm_viewmodel_farz 38; cl_csm_viewmodel_max_shadow_dist 38 and make sure that now it's fine.

Expected behavior cl_csm_viewmodel_farz and cl_csm_viewmodel_max_shadow_dist use 38 value to fix viewmodel CSM lighting problems.

Operating System

Any.