Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player shadow z-fighting with decals #515

Open
ETLegacyTeam opened this issue Mar 5, 2020 · 1 comment
Open

Player shadow z-fighting with decals #515

ETLegacyTeam opened this issue Mar 5, 2020 · 1 comment
Labels
🐞 Bug Something isn't working cat: mod CGAME Category mod (cgame) P3: Normal Priority 3
Milestone

Comments

@ETLegacyTeam
Copy link
Member

Author: @realkemon (keMoN)
Date: 2014-02-19
Redmine Issue: 515, https://dev.etlegacy.com/issues/515


I couldn't find the shader for the player shadow (sprites/shadow_foot and sprites/shadow/torso), but I suppose it's using polygonoffset like decals do.
Anyways, I encountered that the player shadows flickers when standing on top of a decal (the effect when two textures are overlaying each other).
An exception are the tracks in fueldump and their shader uses sort decal in the shader ("sort parameter":http://q3map2.robotrenegade.com/docs/shader_manual/general-directives.html#sort )
Decal isn't one of those options, but obviously exists. This parameter varies the height on which textures/shaders are drawn, so that should be the desired parameter.

I would've tested some options of 'sort' myself, but I couldn't find the shader for the shadows.

@ETLegacyTeam ETLegacyTeam added 🐞 Bug Something isn't working P3: Normal Priority 3 labels Mar 5, 2020
@ETLegacyTeam ETLegacyTeam added this to the Future milestone Mar 5, 2020
@ETLegacyTeam
Copy link
Member Author

From: @realkemon (keMoN)
Date: 2014-02-22T13:41:02Z


The shaders for shadow_foot and shadow_torso are located in _unsorted.shader
I tested several options of the 'sort'-parm, but nothing worked properly.

@rmarquis rmarquis added the cat: mod CGAME Category mod (cgame) label Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working cat: mod CGAME Category mod (cgame) P3: Normal Priority 3
Projects
None yet
Development

No branches or pull requests

2 participants