Skip to content

Commit 090aa03

Browse files
committed
[Templates] Added empty project
1 parent f1f2f83 commit 090aa03

File tree

303 files changed

+28340
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+28340
-0
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
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+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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": "32 32 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": "1024 1024 1",
23+
"Description": "Fixed build in material property for the compute shader global size"
24+
},
25+
"ColorMap":
26+
{
27+
"Usage": "TEXTURE_REFERENCE",
28+
"ValueType": "TEXTURE_ASSET_ID",
29+
"Value": "RacoonEngine/Texture/DynamicByCode/WhiteMap2D",
30+
"Description": "2D color map"
31+
},
32+
"OutputTexture2D":
33+
{
34+
"Usage": "TEXTURE_REFERENCE",
35+
"ValueType": "TEXTURE_ASSET_ID",
36+
"Value": "RacoonEngine/Texture/DynamicByCode/BlackMap2D",
37+
"Description": "Output texture 2D"
38+
}
39+
},
40+
"ComputePipelineState":
41+
{
42+
"ComputeShaderBlueprint": "./SB_CalculateLuminanceCompute.asset"
43+
},
44+
"ResourceGroups":
45+
{
46+
"0":
47+
{
48+
"0":
49+
{
50+
"ResourceType": "TEXTURE_2D",
51+
"BaseShaderRegisterName": "ColorMap",
52+
"BaseShaderRegister": "0",
53+
"Usage": "MATERIAL_REFERENCE",
54+
"ValueType": "TEXTURE_ASSET_ID",
55+
"Value": "@ColorMap",
56+
"FallbackTexture": "RacoonEngine/Texture/DynamicByCode/WhiteMap2D",
57+
"MipmapsUsed": "FALSE",
58+
"SamplerStateBaseShaderRegisterName": "SamplerLinear"
59+
},
60+
"1":
61+
{
62+
"ResourceType": "TEXTURE_2D",
63+
"DescriptorRangeType": "UAV",
64+
"BaseShaderRegisterName": "OutputTexture2D",
65+
"BaseShaderRegister": "1",
66+
"Usage": "MATERIAL_REFERENCE",
67+
"ValueType": "TEXTURE_ASSET_ID",
68+
"Value": "@OutputTexture2D",
69+
"FallbackTexture": "RacoonEngine/Texture/DynamicByCode/BlackMap2D"
70+
}
71+
},
72+
"1":
73+
{
74+
"0":
75+
{
76+
"ResourceType": "SAMPLER_STATE",
77+
"BaseShaderRegisterName": "SamplerLinear",
78+
"BaseShaderRegister": "0",
79+
"Filter": "MIN_MAG_LINEAR_MIP_POINT",
80+
"MaxAnisotropy": "1",
81+
"MaxLod": "0.0"
82+
}
83+
}
84+
}
85+
}
86+
}

0 commit comments

Comments
 (0)