1dd4898713
* Allocate a pass that will be used to generate clipmap Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com> * Fix some small issues Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com> * Rename the pass to avoid future conflict. Move assets to terrain gem. Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com> * Turn the pass off Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com> * Move pass templates to Terrain gem Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com> * move load template to private Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com> * Add macro texture compute pass Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com> * Fix uncleaned code from previous commit Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
{
|
|
"Type": "JsonSerialization",
|
|
"Version": 1,
|
|
"ClassName": "PassAsset",
|
|
"ClassData": {
|
|
// Note: all the data here works as placeholders.
|
|
"PassTemplate": {
|
|
"Name": "TerrainDetailTextureComputePassTemplate",
|
|
"PassClass": "TerrainDetailTextureComputePass",
|
|
"Slots": [
|
|
{
|
|
"Name": "DetailTextureClipmapOutput",
|
|
"ShaderInputName": "m_detailTexClipmap",
|
|
"SlotType": "Output",
|
|
"ScopeAttachmentUsage": "Shader"
|
|
}
|
|
],
|
|
"ImageAttachments": [
|
|
{
|
|
"Name": "DetailTextureClipmap",
|
|
"ImageDescriptor": {
|
|
"Format": "R32G32B32A32_FLOAT",
|
|
"BindFlags": "3",
|
|
"SharedQueueMask": "1",
|
|
"Size": {
|
|
"Width": 1024,
|
|
"Height": 1024
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"Connections": [
|
|
{
|
|
"LocalSlot": "DetailTextureClipmapOutput",
|
|
"AttachmentRef": {
|
|
"Pass": "This",
|
|
"Attachment": "DetailTextureClipmap"
|
|
}
|
|
}
|
|
],
|
|
"PassData": {
|
|
"$type": "Terrain::TerrainDetailTextureComputePassData",
|
|
"ShaderAsset": {
|
|
"FilePath": "Shaders/Terrain/TerrainDetailTextureComputePass.shader"
|
|
},
|
|
"Target Thread Count X": 1024,
|
|
"Target Thread Count Y": 1024,
|
|
"Target Thread Count Z": 1
|
|
}
|
|
}
|
|
}
|
|
}
|