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

Use emission texture and LOD textures to remove artifacts #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GammaGames
Copy link

I wanted to be able to use this with a generic texture for emissions, so I went ahead and did that. To get similar behavior as the GLES2 supported version, you should use a NoiseTexture with 3 octaves, 2 period, 1 persistence, and 2 lacunarity. I also renamed emission_threshold to emission_cutoff, since it seemed to make more sense with a texture.

The LOD textures were to remove these artifacts between rooms:
image

Peek 2022-06-18 11-39

The shader is a separate file because this verson only supports GLES3, there's an explanation on the discord:
image
https://discord.com/channels/212250894228652034/408555922349359105/987656395686051880

In separate file because this only supports GLES3
Use texture for emission, LOD textures too
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.

1 participant