mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 17:13:51 +00:00
feat(editor): texture eyedropper, WOT/WHM preference loading
- Texture eyedropper: pickTextureAt() samples dominant texture at world position by reading chunk alpha maps. Alt+Click in paint mode or click the Eyedropper button to activate - loadADT now checks custom_zones/ and output/ for WOT/WHM open format files first, falling back to ADT binary only if not found - Fix unused variable warning in scatterPatches - Document Alt+Click in help panel
This commit is contained in:
parent
acfbf19144
commit
d2acdc7620
4 changed files with 99 additions and 16 deletions
|
|
@ -42,6 +42,9 @@ public:
|
|||
// Erase a texture layer at the given position
|
||||
std::vector<int> erase(const glm::vec3& center, float radius, float strength, float falloff);
|
||||
|
||||
// Pick the dominant texture at a world position (eyedropper)
|
||||
std::string pickTextureAt(const glm::vec3& worldPos) const;
|
||||
|
||||
private:
|
||||
uint32_t ensureTextureInList(const std::string& path);
|
||||
int ensureLayerOnChunk(int chunkIdx, uint32_t textureId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue