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

Add an option to make slide rotate with player's sight #3

Open
SihenZhang opened this issue Aug 22, 2020 · 1 comment
Open

Add an option to make slide rotate with player's sight #3

SihenZhang opened this issue Aug 22, 2020 · 1 comment

Comments

@SihenZhang
Copy link

Sometimes, I need to make the slide show in the sky as a sign mark. Just like below.

But in another view, the slide will be mirror-flipped.

So, I want to add an option in the Projecter which can make the slide rotate with the player's sight.

@FledgeXu
Copy link
Contributor

FledgeXu commented Aug 25, 2020

Maybe we should enable culling here.


And, draw the picture twice in here: one is clockwise and another is anticlockwise
builder.pos(transforms, 0F, tile.currentSlide.height, -1F / 256F).color(red, green, blue, alpha).tex(0F, 1F).lightmap(combinedLight).endVertex();

These can avoid the mirror-flipped issue.

@SihenZhang SihenZhang reopened this Aug 6, 2022
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

No branches or pull requests

2 participants