StrataSource / Portal-2-Community-Edition

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

Player halfway cast CSM/projected texture shadow if stay in portals #1642

Open MyGamepedia opened 5 months ago

MyGamepedia commented 5 months ago

Describe the bug

When you stay between portals you are able to see weird player's shadow from projected texture or CSM, even if third person is disabled.

https://github.com/StrataSource/Portal-2-Community-Edition/assets/103366204/6ec1c9a0-cf5c-44a6-8e09-117e9eb7e1ba

This happen because of player's physicsshadowclone, dynamic shadow rendering is not disabled for it in the game code. This is what real happening.

Portal 2 Community Edition Screenshot 2024 01 31 - 12 46 51 28

Issue Map

Any map where used portals with env_projectedtexture or CSM. For example, it is available to see in Portal 2 campaign and even some Portal mods (CWTH for example).

To Reproduce

  1. Open my map for quick test (you also can try to test it in sp_a2_triple_laser). testertest_rendersandcsm.zip
  2. Open two linked portals like in the video.
  3. Stay beetwen portals.
  4. Now you see "your" shadow.

Expected behavior No shadow in this case (only if some special cvar or third person is not enabled).

Operating System

Any.