Skip to content

Conversation

@adriengivry
Copy link
Member

@adriengivry adriengivry commented May 17, 2025

Description

Added new shader features (for Standard and StandardPBR):

  • Added distance fade (fade start and length parametrable)
  • Added alpha dithering (discard fragments based on the alpha, useful for fake transparency or to refine cutout edges)
  • Added shader compilation timings log

These new features bring the variant count from 16 to 64 (2^6).
Compilation of the Standard and StandardPBR shaders is still pretty quick (less than 50ms on my machine).

Related Issue(s)

N/A

Review Guidance

Write here.

Screenshots/GIFs

image
New features

OvEditor_bAF7XbC4XF.mp4

Alpha dithering

OvEditor_Kv9vzyoMPF.mp4

Distance fade

image
Shader compilation time

@adriengivry adriengivry self-assigned this May 17, 2025
@adriengivry adriengivry added the Graphics Graphical feature label May 17, 2025
@adriengivry adriengivry merged commit 684a19f into main May 17, 2025
@adriengivry adriengivry deleted the feature/dithering branch May 17, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Graphics Graphical feature

Development

Successfully merging this pull request may close these issues.

2 participants