mojira.dev
MCPE-216759

Vibrant Visuals: Shadows on cross modeled blocks not correctly pixel grid alligned

I am not using any add-ons or resource packs

Related: MCPE-201627 MCPE-216741 MCPE-201966

Shadows on cross blocks aren’t correctly pixel locked. They can get cut off mid pixel.

Valuable Resources: Pixel locking shadows is a technical challange in of itself. I would implore Mojang devs to look at the way https://github.com/ComplementaryDevelopment/ComplementaryReimagined/blob/main/shaders/lib/misc/pixelation.glsl Complementary does it, because that shader doesn’t have any of these issues. TLDR: As far as I understand it they allign shadows to actual texels which means they are always alligned perfectly no matter the angle of the model. This also means the pixel locking is flexible and adapts to the texture resolution (it would still snap to pixels with a x32 or x64 texture pack)

I’ve linked the relevant code directly (pixelisation.glsl in the repository)


Reproduction Steps:
- Place down a pointed dripstone
- Set time to 10000

Observed Results:
- Some shadows on the dripstone are only half a pixel wide

Expected Results:
- Shadows would be alligned to the pixel grid

Attachments

Comments 0

No comments.

Ceresjanin123

(Unassigned)

1415787

Confirmed

Windows

11

vibrant-visuals

1.21.90.20 Preview, 1.21.80.27 Preview

Retrieved