Skip to content

Set anisotropy of ground and grid texture#95

Merged
dmarcos merged 1 commit intosupermedium:masterfrom
mrxz:ground-texture-anisotropy
Jun 17, 2023
Merged

Set anisotropy of ground and grid texture#95
dmarcos merged 1 commit intosupermedium:masterfrom
mrxz:ground-texture-anisotropy

Conversation

@mrxz
Copy link
Contributor

@mrxz mrxz commented Jun 16, 2023

Anisotropy can make the texture sharper in the distance when viewed under a steep angle. With the environment we know the ground and grid textures will be viewed under such conditions, so the visual improvement is substantial. This is also mentioned in the following blog post by Oculus/Meta: Common Rendering Mistakes: How to Find Them and How to Fix Them

And in Project Flowerbed they seem to set it for all textures on models they load: SceneCreationSystem.js#L153

This PR simply sets anisotropy for the two textures used on the ground of the environment. Three.js takes care to not exceed the maximum capabilities of a device. So in case a device doesn't support anisotropy filtering, the setting won't have an effect.

Visual comparison (click to view in full size):

default tron japan
default tron japan

@dmarcos
Copy link
Member

dmarcos commented Jun 17, 2023

Thanks so much!

@dmarcos dmarcos merged commit c50733e into supermedium:master Jun 17, 2023
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.

2 participants