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
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
..
Include/Terrain LYN-8551 Terrain: Renderer: Create compute pass for clipmaps (#7116) 4 years ago
Mocks/Terrain Add GetHeights() and GetSurfaceWeightsFromList() APIs. (#7121) 4 years ago
Source Adding support for blending the terain detail material with the macro material. (#7557) 4 years ago
Tests Merge pull request #7566 from aws-lumberyard-dev/fixClangWindowsBuild 4 years ago
CMakeLists.txt Optimized Gradient Previewer (#7074) 4 years ago
terrain_editor_shared_files.cmake PR feedback addressing 4 years ago
terrain_editor_tests_files.cmake Initial stub terrain gem (#3368) 5 years ago
terrain_files.cmake LYN-8551 Terrain: Renderer: Create compute pass for clipmaps (#7116) 4 years ago
terrain_mocks_files.cmake Moved TerrainDataRquestBus to AzFrameworkTestShared (#5835) 4 years ago
terrain_shared_files.cmake Initial stub terrain gem (#3368) 5 years ago
terrain_tests_files.cmake Clipmap bounds class (#7134) 4 years ago