Use emission texture and LOD textures to remove artifacts #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 renamedemission_threshold
toemission_cutoff
, since it seemed to make more sense with a texture.The LOD textures were to remove these artifacts between rooms:
![image](https://user-images.githubusercontent.com/7832163/174451523-868225fb-9236-4b47-bf0d-1a19afb77e61.png)
The shader is a separate file because this verson only supports GLES3, there's an explanation on the discord:
![image](https://user-images.githubusercontent.com/7832163/174451549-78bf6a5a-5e58-48e6-a31f-85930cd198fb.png)
https://discord.com/channels/212250894228652034/408555922349359105/987656395686051880