Skip to content

Conversation

@SirYodaJedi
Copy link

@SirYodaJedi SirYodaJedi commented Mar 24, 2025

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.


Does this PR close any issues?

  • No

PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

@azzyr azzyr self-requested a review May 21, 2025 12:13
Copy link
Collaborator

@azzyr azzyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@Blixibon Blixibon merged commit 2d96837 into mapbase-source:develop May 30, 2025
4 checks passed
@SirYodaJedi SirYodaJedi deleted the alphatexture branch May 30, 2025 15:57
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.

3 participants