You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Terrain/Code/Source
Ken Pruiksma e8b7bba0f2
Adding support for blending the terain detail material with the macro material. (#7557)
* Adding support for blending the terain detail material with the macro material. Also includes several bug fixes
- The detail materail manager wasn't querying for default terrain region materials when it initializes, so it was missing some creation events that it would later get destruction events for and explode.
- Change the way the default material weights against other surface weights to avoid some discontinuities
- Fixed an issue where a default material id wouldn't initialize as invalid.

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>

* Several improvements and bug fixes
- Adding explicit creation / destruction events for material regions.
- Material regions will no longer try to "hide" when they don't have any materials
- Default detail materials will now only be used in areas where there are no other material assignments
- Fixed a bug where materials might not show up on surfaces when they were assigned to multiple regions or surface tags.

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>

* Simplified loop that assigns materials based on surface tags. Slightly simplified shader code regarding detail material id coordinates.

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>

* Fixes from PR review

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>

* Making sure region changed doesn't get announced in the case where the old and new regions are both invalid.

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>
4 years ago
..
Components Optimize surface providers (#7631) 4 years ago
EditorComponents PR feedback addressing 4 years ago
TerrainRaycast Terrain ray cast benchmarks and optimization. (#7303) 4 years ago
TerrainRenderer Adding support for blending the terain detail material with the macro material. (#7557) 4 years ago
TerrainSystem Fix build error due to const qualifiers not matching 4 years ago
EditorSurfaceTagListProvider.cpp Removed pragma once from cpp 4 years ago
EditorSurfaceTagListProvider.h PR feedback addressing 4 years ago
EditorTerrainModule.cpp Terrain Physics Heightfield support 4 years ago
EditorTerrainModule.h Initial stub terrain gem (#3368) 4 years ago
TerrainModule.cpp Terrain Physics Heightfield support 4 years ago
TerrainModule.h Initial stub terrain gem (#3368) 4 years ago