|
| 1 | +{ |
| 2 | + "Format": |
| 3 | + { |
| 4 | + "Type": "MaterialBlueprintAsset", |
| 5 | + "Version": "2" |
| 6 | + }, |
| 7 | + "MaterialBlueprintAsset": |
| 8 | + { |
| 9 | + "Properties": |
| 10 | + { |
| 11 | + "LocalComputeSize": |
| 12 | + { |
| 13 | + "Usage": "STATIC", |
| 14 | + "ValueType": "INTEGER_3", |
| 15 | + "Value": "1 1 1", |
| 16 | + "Description": "Fixed build in material property for the compute shader local size (also known as number of threads). Must be identical to in-shader values." |
| 17 | + }, |
| 18 | + "GlobalComputeSize": |
| 19 | + { |
| 20 | + "Usage": "STATIC", |
| 21 | + "ValueType": "INTEGER_3", |
| 22 | + "Value": "1 1 1", |
| 23 | + "Description": "Fixed build in material property for the compute shader global size" |
| 24 | + }, |
| 25 | + "FirstExecution": |
| 26 | + { |
| 27 | + "Usage": "SHADER_COMBINATION", |
| 28 | + "ValueType": "BOOLEAN", |
| 29 | + "Value": "FALSE", |
| 30 | + "Description": "Is this the first execution? During the first execution there's no valid previous adaptive luminance available, so use the just calculated luminance as previous luminance.", |
| 31 | + "VisualImportance": "MANDATORY" |
| 32 | + }, |
| 33 | + "AdaptationRate": |
| 34 | + { |
| 35 | + "Usage": "SHADER_UNIFORM", |
| 36 | + "ValueType": "FLOAT", |
| 37 | + "Value": "2.0", |
| 38 | + "MinimumValue": "0.0", |
| 39 | + "MaximumValue": "4.0", |
| 40 | + "StepSize": "0.01", |
| 41 | + "Description": "Controls how quickly auto-exposure adapts to changes in scene brightness" |
| 42 | + }, |
| 43 | + "CurrentLuminanceMap": |
| 44 | + { |
| 45 | + "Usage": "TEXTURE_REFERENCE", |
| 46 | + "ValueType": "TEXTURE_ASSET_ID", |
| 47 | + "Value": "RacoonEngine/Texture/DynamicByCode/WhiteMap2D", |
| 48 | + "Description": "Current 2D luminance map" |
| 49 | + }, |
| 50 | + "PreviousLuminanceMap": |
| 51 | + { |
| 52 | + "Usage": "TEXTURE_REFERENCE", |
| 53 | + "ValueType": "TEXTURE_ASSET_ID", |
| 54 | + "Value": "RacoonEngine/Texture/DynamicByCode/WhiteMap2D", |
| 55 | + "Description": "Previous 2D luminance map" |
| 56 | + }, |
| 57 | + "OutputTexture2D": |
| 58 | + { |
| 59 | + "Usage": "TEXTURE_REFERENCE", |
| 60 | + "ValueType": "TEXTURE_ASSET_ID", |
| 61 | + "Value": "RacoonEngine/Texture/DynamicByCode/BlackMap2D", |
| 62 | + "Description": "Output texture 2D" |
| 63 | + } |
| 64 | + }, |
| 65 | + "ComputePipelineState": |
| 66 | + { |
| 67 | + "ComputeShaderBlueprint": "./SB_AdaptiveLuminanceCompute.asset" |
| 68 | + }, |
| 69 | + "ResourceGroups": |
| 70 | + { |
| 71 | + "0": |
| 72 | + { |
| 73 | + "0": |
| 74 | + { |
| 75 | + "ResourceType": "UNIFORM_BUFFER", |
| 76 | + "BaseShaderRegisterName": "PassUniformBuffer", |
| 77 | + "BaseShaderRegister": "0", |
| 78 | + "BufferUsage": "PASS", |
| 79 | + "NumberOfElements": "1", |
| 80 | + "ElementProperties": |
| 81 | + { |
| 82 | + "AdaptationRate": |
| 83 | + { |
| 84 | + "Usage": "MATERIAL_REFERENCE", |
| 85 | + "ValueType": "FLOAT", |
| 86 | + "Value": "@AdaptationRate" |
| 87 | + }, |
| 88 | + "PastSecondsSinceLastFrame": |
| 89 | + { |
| 90 | + "Usage": "GLOBAL_REFERENCE", |
| 91 | + "ValueType": "FLOAT", |
| 92 | + "Value": "@GlobalPastSecondsSinceLastFrame" |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | + }, |
| 97 | + "1": |
| 98 | + { |
| 99 | + "0": |
| 100 | + { |
| 101 | + "ResourceType": "TEXTURE_2D", |
| 102 | + "BaseShaderRegisterName": "CurrentLuminanceMap", |
| 103 | + "BaseShaderRegister": "0", |
| 104 | + "Usage": "MATERIAL_REFERENCE", |
| 105 | + "ValueType": "TEXTURE_ASSET_ID", |
| 106 | + "Value": "@CurrentLuminanceMap", |
| 107 | + "FallbackTexture": "RacoonEngine/Texture/DynamicByCode/WhiteMap2D" |
| 108 | + }, |
| 109 | + "1": |
| 110 | + { |
| 111 | + "ResourceType": "TEXTURE_2D", |
| 112 | + "BaseShaderRegisterName": "PreviousLuminanceMap", |
| 113 | + "BaseShaderRegister": "1", |
| 114 | + "Usage": "MATERIAL_REFERENCE", |
| 115 | + "ValueType": "TEXTURE_ASSET_ID", |
| 116 | + "Value": "@PreviousLuminanceMap", |
| 117 | + "FallbackTexture": "RacoonEngine/Texture/DynamicByCode/WhiteMap2D", |
| 118 | + "MipmapsUsed": "FALSE" |
| 119 | + }, |
| 120 | + "2": |
| 121 | + { |
| 122 | + "ResourceType": "TEXTURE_2D", |
| 123 | + "DescriptorRangeType": "UAV", |
| 124 | + "BaseShaderRegisterName": "OutputTexture2D", |
| 125 | + "BaseShaderRegister": "2", |
| 126 | + "Usage": "MATERIAL_REFERENCE", |
| 127 | + "ValueType": "TEXTURE_ASSET_ID", |
| 128 | + "Value": "@OutputTexture2D", |
| 129 | + "FallbackTexture": "RacoonEngine/Texture/DynamicByCode/BlackMap2D" |
| 130 | + } |
| 131 | + } |
| 132 | + } |
| 133 | + } |
| 134 | +} |
0 commit comments