Skip to content

Player rendering parity & Coal Item#521

Merged
BrentDaMage merged 14 commits intoReMinecraftPE:masterfrom
Vimd0:master
Feb 26, 2026
Merged

Player rendering parity & Coal Item#521
BrentDaMage merged 14 commits intoReMinecraftPE:masterfrom
Vimd0:master

Conversation

@Vimd0
Copy link
Contributor

@Vimd0 Vimd0 commented Feb 25, 2026

Screenshot_20260225_092101_ReMinecraftPE

Did this on my phone, hope it works 😭

@Wilyicaro
Copy link
Contributor

did this on my phone, hope it works 😭

Is the shadow rendering code working? Considering that I removed the height offset from the position

@Vimd0
Copy link
Contributor Author

Vimd0 commented Feb 25, 2026

did this on my phone, hope it works 😭

Is the shadow rendering code working? Considering that I removed the height offset from the position

It works

void EntityRenderer::postRender(const Entity& entity, const Vec3& pos, float rot, float a)
{
if (m_pDispatcher->m_pOptions && m_pDispatcher->m_pOptions->m_fancyGraphics.get() && areShadowsAvailable() && m_shadowRadius > 0.0f)
//LocalPlayer's shadow not rendering was a bug in the original, caused by the heightOffset being applied to the y position, but as we want to replicate it, this extra condition was added
Copy link
Member

Choose a reason for hiding this comment

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

This is kind of a dumb bug to intentionally introduce imo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You want it removed?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, don't intentionally re-add the bug.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored back the original

@Un1q32
Copy link
Contributor

Un1q32 commented Feb 26, 2026

Broke the SDL2 submodule

@BrentDaMage
Copy link
Member

Broke the SDL2 submodule

Maaaaan, fuck the SDL2 submodule.

@BrentDaMage
Copy link
Member

Broke the SDL2 submodule

I just ran git submodule update and it looks like it changed nothing. Is there a problem? Are we not now just on latest?

@Un1q32
Copy link
Contributor

Un1q32 commented Feb 26, 2026

It's already been changed you have to manually change it back, cd into the submodule directory and run git checkout cd6fbfbb035452a991b9762ecbb888b48ec84c1f, then commit the change

@BrentDaMage
Copy link
Member

It's already been changed you have to manually change it back, cd into the submodule directory and run git checkout cd6fbfbb035452a991b9762ecbb888b48ec84c1f, then commit the change

Why do I need to change it back? Isn't our own fork the correct version of the code??

@Un1q32
Copy link
Contributor

Un1q32 commented Feb 26, 2026

Our master branch has the right version. The PR made a commit to change the submodule version, now you have to make another commit to change it back to the correct version.

@BrentDaMage
Copy link
Member

Our master branch has the right version. The PR made a commit to change the submodule version, now you have to make another commit to change it back to the correct version.

But I am running git submodule update. I am on the latest version of the submodule. Why is that problematic? Shouldn't the latest version of our SDL2 fork function correctly?

@Un1q32
Copy link
Contributor

Un1q32 commented Feb 26, 2026

git submodule update doesn't update the submodule to the latest commit on a remote, the git repo is set to a specific commit and git submodule update just checks out that commit if your submodule is checked out to a different commit than the repo wants. Run the following:

cd thirdparty/SDL2/src
git checkout cd6fbfbb035452a991b9762ecbb888b48ec84c1f
cd ../../..
git add .
git commit -m "fix submodule"
git push

BrentDaMage and others added 2 commits February 25, 2026 21:56
Updated comment to clarify rendering bug related to heightOffset.
@BrentDaMage BrentDaMage merged commit a2f19b7 into ReMinecraftPE:master Feb 26, 2026
13 checks passed
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.

4 participants