EmiOnGit / warbler_grass

A bevy plugin for creating 3d grass in your game
Apache License 2.0
120 stars 11 forks source link

Add config options to be able to flip the y_map in x or y direction #83

Closed ethereumdegen closed 1 month ago

ethereumdegen commented 1 month ago

Add config options to be able to flip the y_map in x or y direction

ethereumdegen commented 1 month ago

this would be very useful for me for linking this with my terrain height data

ethereumdegen commented 1 month ago

Tldr i was able to get this crate hooked up to my terrain by feeding the terrain height maps in however i had to make z be x and x be z in the shader for the y map input. So i had to fork this repo

ethereumdegen commented 1 month ago

Maybe we can add a config option “transpose y map”

EmiOnGit commented 1 month ago

Expected behavior should be that the y-map, normal map and density map are aligned. A setting to configure transposition/rotation of the y map could lead to weird bugs as the other maps are not aligned anymore. How about a setting which controls all maps? Couldn't you just make the grass entity a child entity and rotate the transform at 90 degree?