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

[VRAD] Add %alphatexture (arbitrary VTF for texture shadows) #1150

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SirYodaJedi
Copy link

Description

If present, texture shadows will be generated from alpha of %alphatexture instead of $basetexture. This also permits texture shadows from static props without $translucent or $alphatest being present.

I also moved $alphatest check before $translucent check, because it's probably more common (not that that really speeds much up).

I refrained from renaming the now inaccurately-named variables because I didn't want to accidentally break anything.

Additional information

For more information, see VDC page and Facepunch/garrysmod-requests#2603

Legalese

All code is either written by me or is existing SDK code. Permission is granted to use my changes as you see fit; no credit is necessary.

If present, texture shadows will be generated from alpha of %alphatexture instead of $basetexture. This also permits texture shadows without $translucent or $alphatest being present.

I also moved $alphatest check before $translucent check, because it's probably more common.

I refrained from renaming the now inaccurately-named variables because I didn't want to accidentally break anything.
SirYodaJedi added a commit to Yuis-Archives/mapbase that referenced this pull request Mar 25, 2025
@SirYodaJedi SirYodaJedi changed the title Add %alphatexture (arbitrary VTF for texture shadows) [VRAD] Add %alphatexture (arbitrary VTF for texture shadows) Mar 25, 2025
Bitl added a commit to FIREFIGHT-RELOADED/FIREFIGHT-RELOADED-src-sdk-2013 that referenced this pull request Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants